mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 22:37:11 +00:00
[WIN32K]
- Accept to fill a BITMAPCOREINFO structure in NtGdiGetDIBitsInternal svn path=/trunk/; revision=57537
This commit is contained in:
parent
1c4b5304f6
commit
9971415df5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue