mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[WIN32K]
- Accept to fill a BITMAPCOREINFO structure in NtGdiGetDIBitsInternal svn path=/trunk/; revision=57537
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user