mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 20:11:57 +00:00
[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:
parent
6b8f9c0c2b
commit
e80e205156
1 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue