Juan Lang : crypt32: Fix a test failure on systems with no c: drive.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 10:08:31 CDT 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Oct 22 15:02:29 2009 -0700

crypt32: Fix a test failure on systems with no c: drive.

---

 dlls/crypt32/tests/sip.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c
index 372d7ce..8d9af75 100644
--- a/dlls/crypt32/tests/sip.c
+++ b/dlls/crypt32/tests/sip.c
@@ -181,8 +181,10 @@ static void test_SIPRetrieveSubjectGUID(void)
     memset(&subject, 1, sizeof(GUID));
     ret = CryptSIPRetrieveSubjectGuid(deadbeef, NULL, &subject);
     ok ( !ret, "Expected CryptSIPRetrieveSubjectGuid to fail\n");
-    ok (GetLastError() == ERROR_FILE_NOT_FOUND,
-        "Expected ERROR_FILE_NOT_FOUND, got %d.\n", GetLastError());
+    ok (GetLastError() == ERROR_FILE_NOT_FOUND ||
+        GetLastError() == ERROR_PATH_NOT_FOUND,
+        "Expected ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND, got %d.\n",
+        GetLastError());
     ok ( !memcmp(&subject, &nullSubject, sizeof(GUID)),
         "Expected a NULL GUID for c:\\deadbeef.dbf, not %s\n", show_guid(&subject, guid1));
 




More information about the wine-cvs mailing list