wintrust/tests: make sure return values are used (LLVM/Clang) (2/4)

Austin English austinenglish at gmail.com
Thu Feb 3 19:47:15 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c
index 68a9ebc..bb561a2 100644
--- a/dlls/wintrust/tests/crypt.c
+++ b/dlls/wintrust/tests/crypt.c
@@ -616,6 +616,7 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
     /* Set the attributes so we can delete the file */
     attrs = FILE_ATTRIBUTE_NORMAL;
     ret = SetFileAttributesA(tmpfile, attrs);
+    ok(ret, "SetFileAttributesA failed %u\n", GetLastError());
     DeleteFileA(tmpfile);
 }
 
@@ -784,7 +785,7 @@ static void test_create_catalog_file(void)
 
     /* Only enumerate the members */
     trace("Only members\n");
-    attrcount = membercount = 0;
+    membercount = 0;
     catcdf = pCryptCATCDFOpen(cdffileW, NULL);
 
     catmember = NULL;


More information about the wine-patches mailing list