windowscodecs/tests: Actually test the return of IWICBitmap_GetSize()

Michael Stefaniuc mstefani at redhat.de
Mon Mar 30 03:13:23 CDT 2015


---
 dlls/windowscodecs/tests/bitmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/tests/bitmap.c b/dlls/windowscodecs/tests/bitmap.c
index 48c1bdb..1b91dca 100644
--- a/dlls/windowscodecs/tests/bitmap.c
+++ b/dlls/windowscodecs/tests/bitmap.c
@@ -655,7 +655,7 @@ static void test_CreateBitmapFromHICON(void)
     ok(IsEqualGUID(&format, &GUID_WICPixelFormat32bppBGRA),
        "unexpected pixel format %s\n", wine_dbgstr_guid(&format));
 
-    IWICBitmap_GetSize(bitmap, &width, &height);
+    hr = IWICBitmap_GetSize(bitmap, &width, &height);
     ok(hr == S_OK, "IWICBitmap_GetSize error %#x\n", hr);
     ok(width == 16, "expected 16, got %u\n", width);
     ok(height == 16, "expected 16, got %u\n", height);
@@ -683,7 +683,7 @@ static void test_CreateBitmapFromHICON(void)
     ok(IsEqualGUID(&format, &GUID_WICPixelFormat32bppBGRA),
        "unexpected pixel format %s\n", wine_dbgstr_guid(&format));
 
-    IWICBitmap_GetSize(bitmap, &width, &height);
+    hr = IWICBitmap_GetSize(bitmap, &width, &height);
     ok(hr == S_OK, "IWICBitmap_GetSize error %#x\n", hr);
     ok(width == 16, "expected 16, got %u\n", width);
     ok(height == 16, "expected 16, got %u\n", height);
-- 
1.9.3



More information about the wine-patches mailing list