version/tests: make sure return values are used (LLVM/Clang)

Austin English austinenglish at gmail.com
Tue Feb 8 18:05:19 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/version/tests/info.c b/dlls/version/tests/info.c
index edf607c..e4badbe 100644
--- a/dlls/version/tests/info.c
+++ b/dlls/version/tests/info.c
@@ -341,12 +341,14 @@ static void test_32bit_win(void)
         retvalW = GetFileVersionInfoSizeW( mypathW, &hdlW);
         pVersionInfoW = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, retvalW );
         retW = GetFileVersionInfoW( mypathW, 0, retvalW, pVersionInfoW );
+        ok(retW, "GetFileVersionInfo failed: GetLastError = %u\n", GetLastError());
     }
 
     GetModuleFileNameA(NULL, mypathA, MAX_PATH);
     retvalA = GetFileVersionInfoSizeA( mypathA, &hdlA);
     pVersionInfoA = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, retvalA );
     retA = GetFileVersionInfoA( mypathA, 0, retvalA, pVersionInfoA );
+    ok(retA, "GetFileVersionInfo failed: GetLastError = %u\n", GetLastError());
 
     if (is_unicode_enabled)
     { 


More information about the wine-patches mailing list