crypt32/tests: remove ret from testAddSerialized, where it's not really used

Austin English austinenglish at gmail.com
Fri May 21 13:45:53 CDT 2010


Gerald's made good progress here, there's only 81 of these left in
wine-1.1.44-427-ga06a191.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c
index cab74c6..f287c80 100644
--- a/dlls/crypt32/tests/store.c
+++ b/dlls/crypt32/tests/store.c
@@ -2066,17 +2066,16 @@ static void testAddSerialized(void)
 static void compareStore(HCERTSTORE store, LPCSTR name, const BYTE *pb,
  DWORD cb)
 {
-    BOOL ret;
     CRYPT_DATA_BLOB blob = { 0, NULL };

-    ret = CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
+    CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
      CERT_STORE_SAVE_TO_MEMORY, &blob, 0);
     ok(blob.cbData == cb, "%s: expected size %d, got %d\n", name, cb,
      blob.cbData);
     blob.pbData = HeapAlloc(GetProcessHeap(), 0, blob.cbData);
     if (blob.pbData)
     {
-        ret = CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
+        CertSaveStore(store, X509_ASN_ENCODING, CERT_STORE_SAVE_AS_STORE,
          CERT_STORE_SAVE_TO_MEMORY, &blob, 0);
         ok(!memcmp(pb, blob.pbData, cb), "%s: unexpected value\n", name);
         HeapFree(GetProcessHeap(), 0, blob.pbData);


More information about the wine-patches mailing list