windowscodecs/tests: Use todo_wine_if() in tests

André Hentschel nerv at dawncrow.de
Fri Feb 19 16:12:19 CST 2016


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 dlls/windowscodecs/tests/converter.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/windowscodecs/tests/converter.c b/dlls/windowscodecs/tests/converter.c
index 5c764d2..00ea483 100644
--- a/dlls/windowscodecs/tests/converter.c
+++ b/dlls/windowscodecs/tests/converter.c
@@ -304,9 +304,7 @@ static void test_conversion(const struct bitmap_data *src, const struct bitmap_d
     CreateTestBitmap(src, &src_obj);
 
     hr = WICConvertBitmapSource(dst->format, &src_obj->IWICBitmapSource_iface, &dst_bitmap);
-    if (todo)
-        todo_wine ok(SUCCEEDED(hr), "WICConvertBitmapSource(%s) failed, hr=%x\n", name, hr);
-    else
+    todo_wine_if (todo)
         ok(SUCCEEDED(hr), "WICConvertBitmapSource(%s) failed, hr=%x\n", name, hr);
 
     if (SUCCEEDED(hr))
-- 
1.9.1





More information about the wine-patches mailing list