From 9971415df51cd4efb35352f9827fb7045daddf1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 11 Oct 2012 13:33:09 +0000 Subject: [PATCH] [WIN32K] - Accept to fill a BITMAPCOREINFO structure in NtGdiGetDIBitsInternal svn path=/trunk/; revision=57537 --- reactos/win32ss/gdi/ntgdi/dibobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/gdi/ntgdi/dibobj.c b/reactos/win32ss/gdi/ntgdi/dibobj.c index 65dea062c9a..ed8876f75db 100644 --- a/reactos/win32ss/gdi/ntgdi/dibobj.c +++ b/reactos/win32ss/gdi/ntgdi/dibobj.c @@ -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;