Commit 5cd09929 authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

Win98 fails another way when user isn't logged in.

parent 695e3928
...@@ -154,6 +154,7 @@ static void test_acquire_context(void) ...@@ -154,6 +154,7 @@ static void test_acquire_context(void)
{ {
BOOL result; BOOL result;
HCRYPTPROV hProv; HCRYPTPROV hProv;
DWORD GLE;
/* Provoke all kinds of error conditions (which are easy to provoke). /* Provoke all kinds of error conditions (which are easy to provoke).
* The order of the error tests seems to match Windows XP's rsaenh.dll CSP, * The order of the error tests seems to match Windows XP's rsaenh.dll CSP,
...@@ -185,7 +186,12 @@ static void test_acquire_context(void) ...@@ -185,7 +186,12 @@ static void test_acquire_context(void)
hProv = 0; hProv = 0;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
result = pCryptAcquireContextA(&hProv, szKeySet, szRsaBaseProv, PROV_RSA_FULL, 0); result = pCryptAcquireContextA(&hProv, szKeySet, szRsaBaseProv, PROV_RSA_FULL, 0);
ok(result && (GetLastError() == ERROR_ENVVAR_NOT_FOUND || GetLastError() == ERROR_SUCCESS || GetLastError() == ERROR_RING2_STACK_IN_USE || GetLastError() == NTE_FAIL), "%d/%ld\n", result, GetLastError()); GLE = GetLastError();
ok(result && (GLE == ERROR_ENVVAR_NOT_FOUND ||
GLE == ERROR_SUCCESS ||
GLE == ERROR_RING2_STACK_IN_USE ||
GLE == NTE_FAIL ||
GLE == ERROR_NOT_LOGGED_ON), "%d/%ld\n", result, GLE);
if (hProv) if (hProv)
pCryptReleaseContext(hProv, 0); pCryptReleaseContext(hProv, 0);
...@@ -194,7 +200,12 @@ static void test_acquire_context(void) ...@@ -194,7 +200,12 @@ static void test_acquire_context(void)
hProv = 0; hProv = 0;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
result = pCryptAcquireContextA(&hProv, szKeySet, "", PROV_RSA_FULL, 0); result = pCryptAcquireContextA(&hProv, szKeySet, "", PROV_RSA_FULL, 0);
ok(result && (GetLastError() == ERROR_ENVVAR_NOT_FOUND || GetLastError() == ERROR_SUCCESS || GetLastError() == ERROR_RING2_STACK_IN_USE || GetLastError() == NTE_FAIL), "%d/%ld\n", result, GetLastError()); GLE = GetLastError();
ok(result && (GLE == ERROR_ENVVAR_NOT_FOUND ||
GLE == ERROR_SUCCESS ||
GLE == ERROR_RING2_STACK_IN_USE ||
GLE == NTE_FAIL ||
GLE == ERROR_NOT_LOGGED_ON), "%d/%ld\n", result, GetLastError());
if (hProv) if (hProv)
pCryptReleaseContext(hProv, 0); pCryptReleaseContext(hProv, 0);
......
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