- Accept to fill a BITMAPCOREINFO structure in NtGdiGetDIBitsInternal

svn path=/trunk/; revision=57537
This commit is contained in:
Jérôme Gardou 2012-10-11 13:33:09 +00:00
parent 1c4b5304f6
commit 9971415df5

View file

@ -1014,7 +1014,7 @@ NtGdiGetDIBitsInternal(
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 @@ NtGdiGetDIBitsInternal(
_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;