We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6529244 commit 4671aaaCopy full SHA for 4671aaa
1 file changed
modules/rostests/apitests/win32u/ntgdi/NtGdiExtSelectClipRgn.c
@@ -11,6 +11,7 @@ START_TEST(NtGdiExtSelectClipRgn)
11
{
12
HRGN hRgnDest, hRgn1, hRgn2;
13
HDC hdc;
14
+ HBITMAP hbm;
15
// test what params are accepted for what operations
16
// 0? invalid? are params maybe ignored in some cases?
17
// LastError
@@ -20,7 +21,9 @@ START_TEST(NtGdiExtSelectClipRgn)
20
21
hRgn1 = CreateRectRgn(1,1,4,4);
22
hRgn2 = CreateRectRgn(2,2,6,3);
23
- hdc = GetDC(NULL);
24
+ hdc = CreateCompatibleDC(NULL);
25
+ hbm = CreateCompatibleBitmap(hdc, 10, 10);
26
+ SelectObject(hdc, hbm);
27
28
/* RGN_AND = 1, RGN_OR = 2, RGN_XOR = 3, RGN_DIFF = 4, RGN_COPY = 5 */
29
@@ -54,4 +57,7 @@ START_TEST(NtGdiExtSelectClipRgn)
54
57
ok_int(NtGdiExtSelectClipRgn(hdc, NULL, RGN_AND), ERROR);
55
58
ok_long(GetLastError(), 0xDEADFACE);
56
59
ok_int(NtGdiExtSelectClipRgn(hdc, NULL, RGN_COPY), SIMPLEREGION);
60
+
61
+ DeleteDC(hdc);
62
+ DeleteObject(hbm);
63
}
0 commit comments