diff options
author | Sandy Stutsman <sstutsma@redhat.com> | 2015-11-02 14:35:50 -0500 |
---|---|---|
committer | Sandy Stutsman <sstutsma@redhat.com> | 2015-11-25 11:26:13 -0500 |
commit | e334f6c2758b4f8f2ca1016a4d6db1bd89252552 (patch) | |
tree | 750bcd795186806329b6810d665023be24ddd482 | |
parent | 45a2f73a6c09f54ef418a8aa41593d05a06232bf (diff) |
Use SrcPitch when calculating size of memory to map PresentDisplayOnly
Otherwise, can result in a BSOD.
-rwxr-xr-x | qxldod/QxlDod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index 9d13934..7b60e0c 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -3606,7 +3606,7 @@ QxlDevice::ExecutePresentDisplayOnly( {
// Map Source into kernel space, as Blt will be executed by system worker thread
- UINT sizeToMap = SrcBytesPerPixel * ctx->SrcWidth * ctx->SrcHeight;
+ UINT sizeToMap = ctx->SrcPitch * ctx->SrcHeight;
PMDL mdl = IoAllocateMdl((PVOID)SrcAddr, sizeToMap, FALSE, FALSE, NULL);
if(!mdl)
|