Win98 fails another way when user isn't logged in.
This commit is contained in:
parent
695e392875
commit
5cd099290c
|
@ -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)
|
||||||
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)
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue