Austin English : cryptnet/tests: Make sure to use return value (LLVM/Clang) .

Alexandre Julliard julliard at winehq.org
Mon Feb 7 16:06:36 CST 2011


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

Author: Austin English <austinenglish at gmail.com>
Date:   Fri Feb  4 16:07:10 2011 -0800

cryptnet/tests: Make sure to use return value (LLVM/Clang).

---

 dlls/cryptnet/tests/cryptnet.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c
index 64491e7..113406c 100644
--- a/dlls/cryptnet/tests/cryptnet.c
+++ b/dlls/cryptnet/tests/cryptnet.c
@@ -357,6 +357,7 @@ static void test_retrieveObjectByUrl(void)
     cert = (PCCERT_CONTEXT)0xdeadbeef;
     ret = CryptRetrieveObjectByUrlA(url, CONTEXT_OID_CERTIFICATE, 0, 0,
      (void **)&cert, NULL, NULL, NULL, NULL);
+    ok(ret, "CryptRetrieveObjectByUrlA failed: %d\n", GetLastError());
     ok(cert && cert != (PCCERT_CONTEXT)0xdeadbeef, "Expected a cert\n");
     if (cert && cert != (PCCERT_CONTEXT)0xdeadbeef)
         CertFreeCertificateContext(cert);
@@ -560,7 +561,7 @@ static void test_verifyRevocation(void)
     if (0)
     {
         /* Crash */
-        ret = pCertVerifyRevocation(0, 0, 0, NULL, 0, NULL, NULL);
+        pCertVerifyRevocation(0, 0, 0, NULL, 0, NULL, NULL);
     }
     SetLastError(0xdeadbeef);
     ret = pCertVerifyRevocation(0, 0, 0, NULL, 0, NULL, &status);




More information about the wine-cvs mailing list