[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:
Katayama Hirofumi MZ 2019-01-27 17:44:34 +09:00 committed by GitHub
parent 1ad9a1deab
commit 1cac3fbe63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;