Dmitry Timoshkov : gdiplus/tests: Don't bother to delete a NULL hrgn.
Alexandre Julliard
julliard at winehq.org
Tue Sep 24 15:16:48 CDT 2013
Module: wine
Branch: master
Commit: 108873320c4366d35891e8efa44a85bc77c6da57
URL: http://source.winehq.org/git/wine.git/?a=commit;h=108873320c4366d35891e8efa44a85bc77c6da57
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Sep 24 11:24:30 2013 +0900
gdiplus/tests: Don't bother to delete a NULL hrgn.
---
dlls/gdiplus/tests/region.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/tests/region.c b/dlls/gdiplus/tests/region.c
index ee6e158..a254bed 100644
--- a/dlls/gdiplus/tests/region.c
+++ b/dlls/gdiplus/tests/region.c
@@ -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);
More information about the wine-cvs
mailing list