[WIN32KNT_APITEST] Check bit pattern of pvBits (#1315)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 27 Jan 2019 11:25:15 +0000 (20:25 +0900)
committerGitHub <noreply@github.com>
Sun, 27 Jan 2019 11:25:15 +0000 (20:25 +0900)
CORE-15657

modules/rostests/apitests/win32nt/ntgdi/NtGdiSetBitmapBits.c

index 88b5720..21d1f1f 100644 (file)
@@ -294,6 +294,8 @@ START_TEST(NtGdiSetBitmapBits)
     ok_int(Bits[3], 0x33);
     ok_int(Bits[4], 0x55);
 
     ok_int(Bits[3], 0x33);
     ok_int(Bits[4], 0x55);
 
+    ok_long(*(LPDWORD)pvBits, 0);
+
     DeleteObject(hBitmap);
     DeleteDC(hDC);
 
     DeleteObject(hBitmap);
     DeleteDC(hDC);
 
@@ -393,6 +395,8 @@ START_TEST(NtGdiSetBitmapBits)
     ok_int(Bits[3], 0x33);
     ok_int(Bits[4], 0x55);
 
     ok_int(Bits[3], 0x33);
     ok_int(Bits[4], 0x55);
 
+    ok_long(*(LPDWORD)pvBits, 0x33AAAAAA);
+
     DeleteObject(hBitmap);
     DeleteDC(hDC);
 }
     DeleteObject(hBitmap);
     DeleteDC(hDC);
 }