- NtGdiGetDIBitsInternal: Copy the requested amount of scanlines into the return buffer, not the whole bitmap. Should fix bug #5766.

svn path=/trunk/; revision=50113
This commit is contained in:
Roel Messiant 2010-12-23 14:10:59 +00:00
parent ac56cac80c
commit aa62a1a2a6

View file

@ -971,7 +971,7 @@ NtGdiGetDIBitsInternal(
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
_SEH2_TRY _SEH2_TRY
{ {
RtlCopyMemory(Bits, pDIBits, DIB_GetDIBImageBytes (width, height, bpp)); RtlCopyMemory(Bits, pDIBits, DIB_GetDIBImageBytes (width, ScanLines, bpp));
} }
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{ {