Commit 7e4ea8e5 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

crypt32/tests: Don't crash on NT4.

parent d60c3276
...@@ -1260,11 +1260,15 @@ static void testFileNameStore(void) ...@@ -1260,11 +1260,15 @@ static void testFileNameStore(void)
BOOL ret; BOOL ret;
DWORD GLE; DWORD GLE;
store = CertOpenStore(CERT_STORE_PROV_FILENAME_W, 0, 0, 0, NULL); if (0)
GLE = GetLastError(); {
ok(!store && (GLE == ERROR_PATH_NOT_FOUND || GLE == ERROR_INVALID_PARAMETER), /* Crashes on NT4 */
"Expected ERROR_PATH_NOT_FOUND or ERROR_INVALID_PARAMETER, got %08x\n", store = CertOpenStore(CERT_STORE_PROV_FILENAME_W, 0, 0, 0, NULL);
GLE); 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)) if (!GetTempFileNameW(szDot, szPrefix, 0, filename))
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment