[PATCH] Don't crash on NT4

Paul Vriens Paul.Vriens.Wine at gmail.com
Sun Sep 14 15:18:34 CDT 2008


---
 dlls/crypt32/tests/store.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c
index b982c56..450b754 100644
--- a/dlls/crypt32/tests/store.c
+++ b/dlls/crypt32/tests/store.c
@@ -1260,11 +1260,15 @@ static void testFileNameStore(void)
     BOOL ret;
     DWORD GLE;
 
-    store = CertOpenStore(CERT_STORE_PROV_FILENAME_W, 0, 0, 0, NULL);
-    GLE = GetLastError();
-    ok(!store && (GLE == ERROR_PATH_NOT_FOUND || GLE == ERROR_INVALID_PARAMETER),
-     "Expected ERROR_PATH_NOT_FOUND or ERROR_INVALID_PARAMETER, got %08x\n",
-     GLE);
+    if (0)
+    {
+        /* Crashes on NT4 */
+        store = CertOpenStore(CERT_STORE_PROV_FILENAME_W, 0, 0, 0, NULL);
+        GLE = GetLastError();
+        ok(!store && (GLE == ERROR_PATH_NOT_FOUND || GLE == ERROR_INVALID_PARAMETER),
+         "Expected ERROR_PATH_NOT_FOUND or ERROR_INVALID_PARAMETER, got %08x\n",
+         GLE);
+    }
 
     if (!GetTempFileNameW(szDot, szPrefix, 0, filename))
        return;
-- 
1.5.5.1


--------------020403060604060104040301--



More information about the wine-patches mailing list