Huw Davies : wintrust/tests: Fix failing test on win8.

Alexandre Julliard julliard at winehq.org
Tue May 6 13:37:12 CDT 2014


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Tue May  6 16:29:36 2014 +0100

wintrust/tests: Fix failing test on win8.

---

 dlls/wintrust/tests/crypt.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c
index 4d9061b..55f9ece 100644
--- a/dlls/wintrust/tests/crypt.c
+++ b/dlls/wintrust/tests/crypt.c
@@ -551,7 +551,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);




More information about the wine-cvs mailing list