[WIN32KNT_APITEST] NtGdiSetBitmapBits: Add tests for maximum buffer size (#1311)

Improve NtGdiSetBitmapBits testcase by adding tests for maximum buffer size. CORE-15657
This commit is contained in:
Katayama Hirofumi MZ 2019-01-27 16:35:53 +09:00 committed by GitHub
parent 6b8f9c0c2b
commit e80e205156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,26 @@ START_TEST(NtGdiSetBitmapBits)
ok_long(NtGdiSetBitmapBits(hBitmap, 12345678, Bits), 0);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 0x100, Bits), 0xC);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 564, Bits), 0xC);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 565, Bits), 0);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 0x7FFF, Bits), 0);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 0x8000, Bits), 0);
ok_long(GetLastError(), 0xDEADFACE);
SetLastError(0xDEADFACE);
ok_long(NtGdiSetBitmapBits(hBitmap, 0xFFFF, Bits), 0);
ok_long(GetLastError(), 0xDEADFACE);