Author: jgardou
Date: Thu Oct 11 13:33:09 2012
New Revision: 57537
URL:
http://svn.reactos.org/svn/reactos?rev=57537&view=rev
Log:
[WIN32K]
- Accept to fill a BITMAPCOREINFO structure 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] Thu Oct 11 13:33:09 2012
@@ -1014,7 +1014,7 @@
if (iUsage > 2) return 0;
/* Check if the size of the bitmap info is large enough */
- if (cjMaxInfo < sizeof(BITMAPINFOHEADER))
+ if (cjMaxInfo < sizeof(BITMAPCOREHEADER))
{
return 0;
}
@@ -1048,7 +1048,7 @@
_SEH2_END;
/* Check if the header size is large enough */
- if ((pbmi->bmiHeader.biSize < sizeof(BITMAPINFOHEADER)) ||
+ if ((pbmi->bmiHeader.biSize < sizeof(BITMAPCOREHEADER)) ||
(pbmi->bmiHeader.biSize > cjMaxInfo))
{
goto cleanup;