gdiplus: Fix leak in test in todo_wine case.
Vincent Povirk
madewokherd at gmail.com
Wed Mar 18 11:20:22 CDT 2015
For bug 36133.
-------------- next part --------------
From 5645d5cab41200b89da693397112a858301881eb Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 18 Mar 2015 11:12:59 -0500
Subject: [PATCH] gdiplus: Fix leak in test in todo_wine case.
---
dlls/gdiplus/tests/image.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 68a06c4..63fc96e 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -4103,8 +4103,9 @@ static void test_image_format(void)
ok(status == OutOfMemory || broken(status == InvalidParameter) /* before win7 */,
"expected OutOfMemory, got %d\n", status);
else
- {
expect(Ok, status);
+ if (status == Ok)
+ {
status = GdipGetImagePixelFormat(thumb, &format);
expect(Ok, status);
ok(format == PixelFormat32bppPARGB || broken(format != PixelFormat32bppPARGB) /* before win7 */,
--
2.1.0
More information about the wine-patches
mailing list