[WINTRUST_WINETEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 8 Oct 2014 19:51:36 +0000 (19:51 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 8 Oct 2014 19:51:36 +0000 (19:51 +0000)
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64623

rostests/winetests/wintrust/crypt.c
rostests/winetests/wintrust/softpub.c

index 76e9a7c..9e21f3f 100644 (file)
@@ -239,7 +239,7 @@ static void test_context(void)
      * FIXME:
      * We don't want to mess too much with these for now so we should delete only the ones
      * that shouldn't be there like the deadbeef ones. We first have to figure out if it's
-     * save to remove files and directories from CatRoot/CatRoot2.
+     * safe to remove files and directories from CatRoot/CatRoot2.
      */
 
     ret = pCryptCATAdminAcquireContext(&hca, &dummy, 0);
@@ -550,7 +550,9 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
     hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);
     error = GetLastError();
     ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
-    ok(error == ERROR_INVALID_PARAMETER, "got %u expected ERROR_INVALID_PARAMETER\n", GetLastError());
+    ok(error == ERROR_INVALID_PARAMETER ||
+       error == ERROR_BAD_FORMAT, /* win 8 */
+       "got %u\n", GetLastError());
 
     SetLastError(0xdeadbeef);
     hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, NULL, 0);
index f342936..b1ac8a3 100644 (file)
@@ -222,6 +222,7 @@ static void test_utils(SAFE_PROVIDER_FUNCTIONS *funcs)
         }
         else
             skip("CertCreateCertificateContext failed: %08x\n", GetLastError());
+        funcs->pfnFree(data.pasSigners);
     }
 }