mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[WIN32SS][NTGDI] Fix NtGdiSetBitmapBits in buffer size (#1313)
Let NtGdiSetBitmapBits function fail if buffer size was greater than 564. CORE-15657
This commit is contained in:
parent
1ad9a1deab
commit
1cac3fbe63
1 changed files with 6 additions and 0 deletions
|
@ -617,6 +617,12 @@ NtGdiSetBitmapBits(
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* 565 is confirmed value in Win2k3 */
|
||||
if (Bytes >= 565)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (GDI_HANDLE_IS_STOCKOBJ(hBitmap))
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue