Skip to content

Commit ab0fe2f

Browse files
committed
[WIN32U_APITEST] Fix test for NtGdiRestoreDC
1 parent 228b3ca commit ab0fe2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/rostests/apitests/win32u/ntgdi/NtGdiRestoreDC.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ Test_IsSpecialState(HDC hdc, BOOL bMemDC)
8585
else
8686
{
8787
TEST(SelectObject(hdc, GetStockObject(DEFAULT_BITMAP)) == 0);
88-
TEST(SelectObject(hdc, hrgn2) == (PVOID)2);
88+
HGDIOBJ hOldObj = SelectObject(hdc, hrgn2);
89+
ok(hOldObj == (PVOID)2 || broken(hOldObj == (PVOID)1), "hOldObj was 0x%p\n", hOldObj);
8990
}
9091

9192
/* Test colors */

0 commit comments

Comments
 (0)