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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 30 10:12:58 CDT 2015


Module: wine
Branch: master
Commit: a21f30c23e14076d292e96bb8593326cbdedca51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a21f30c23e14076d292e96bb8593326cbdedca51

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Mar 30 10:13:23 2015 +0200

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

---

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




More information about the wine-cvs mailing list