crypt32/tests: don't check return values inside of if(0) (LLVM/Clang) (3/5)

Austin English austinenglish at gmail.com
Thu Feb 10 15:27:09 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c
index 5f2e4d0..8c5b41e 100644
--- a/dlls/crypt32/tests/main.c
+++ b/dlls/crypt32/tests/main.c
@@ -47,8 +47,7 @@ static void test_findAttribute(void)
     if (0)
     {
         /* crashes */
-        SetLastError(0xdeadbeef);
-        ret = CertFindAttribute(NULL, 1, NULL);
+        CertFindAttribute(NULL, 1, NULL);
         /* returns NULL, last error is ERROR_INVALID_PARAMETER
          * crashes on Vista
          */
@@ -138,7 +137,7 @@ static void test_findRDNAttr(void)
     {
         /* crashes */
         SetLastError(0xdeadbeef);
-        ret = CertFindRDNAttr(NULL, NULL);
+        CertFindRDNAttr(NULL, NULL);
         /* returns NULL, last error is ERROR_INVALID_PARAMETER
          * crashes on Vista
          */
@@ -395,7 +394,7 @@ static void test_format_object(void)
     /* Crash */
     if (0)
     {
-        ret = pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
+        pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
     }
     /* When called with any but the default encoding, it fails to find a
      * formatting function.


More information about the wine-patches mailing list