Author: tkreuzer
Date: Sun Nov 16 14:22:54 2014
New Revision: 65420
URL:
http://svn.reactos.org/svn/reactos?rev=65420&view=rev
Log:
[WIN32K]
Copy only the actual size of the BITMAPINFO back to usermode in NtGdiGetDIBitsInternal.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dibobj.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] Sun Nov 16 14:22:54 2014
@@ -1101,6 +1101,7 @@
_SEH2_TRY
{
/* Copy the data back */
+ cjMaxInfo = DIB_BitmapInfoSize(pbmi, (WORD)iUsage);
ProbeForWrite(pbmiUser, cjMaxInfo, 1);
RtlCopyMemory(pbmiUser, pbmi, cjMaxInfo);
}