gdiplus/tests: Don't bother to delete a NULL hrgn.
This commit is contained in:
parent
fdeab06142
commit
108873320c
|
@ -860,12 +860,10 @@ static void test_gethrgn(void)
|
|||
status = GdipGetRegionHRgn(region, NULL, &hrgn);
|
||||
ok(status == Ok, "status %08x\n", status);
|
||||
ok(hrgn == NULL, "hrgn=%p\n", hrgn);
|
||||
DeleteObject(hrgn);
|
||||
|
||||
status = GdipGetRegionHRgn(region, graphics, &hrgn);
|
||||
ok(status == Ok, "status %08x\n", status);
|
||||
ok(hrgn == NULL, "hrgn=%p\n", hrgn);
|
||||
DeleteObject(hrgn);
|
||||
|
||||
status = GdipSetEmpty(region);
|
||||
ok(status == Ok, "status %08x\n", status);
|
||||
|
|
Loading…
Reference in New Issue