crypt32: use ret in compareStore()

Austin English austinenglish at gmail.com
Sat May 22 00:35:12 CDT 2010


Passes WineTestBot:
https://testbot.winehq.org/JobDetails.pl?Key=2237

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c
index cab74c6..1bdde6c 100644
--- a/dlls/crypt32/tests/store.c
+++ b/dlls/crypt32/tests/store.c
@@ -2071,6 +2071,7 @@ static void compareStore(HCERTSTORE store, LPCSTR name, const BYTE *pb,
 
     ret = CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
      CERT_STORE_SAVE_TO_MEMORY, &blob, 0);
+    todo_wine ok(ret && GetLastError() == CRYPT_E_NOT_FOUND, "CertSaveStore failed. Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
     ok(blob.cbData == cb, "%s: expected size %d, got %d\n", name, cb,
      blob.cbData);
     blob.pbData = HeapAlloc(GetProcessHeap(), 0, blob.cbData);
@@ -2078,6 +2079,7 @@ static void compareStore(HCERTSTORE store, LPCSTR name, const BYTE *pb,
     {
         ret = CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
          CERT_STORE_SAVE_TO_MEMORY, &blob, 0);
+        todo_wine ok(ret && GetLastError() == CRYPT_E_NOT_FOUND, "CertSaveStore failed. Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
         ok(!memcmp(pb, blob.pbData, cb), "%s: unexpected value\n", name);
         HeapFree(GetProcessHeap(), 0, blob.pbData);
     }


More information about the wine-patches mailing list