gdiplus/tests: Don't bother to delete a NULL hrgn.

This commit is contained in:
Dmitry Timoshkov 2013-09-24 11:24:30 +09:00 committed by Alexandre Julliard
parent fdeab06142
commit 108873320c
1 changed files with 0 additions and 2 deletions

View File

@ -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);