Commit d211ddbf authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

rsaenh/tests: Fix a test failure on Win98.

parent 26d565ac
...@@ -146,9 +146,16 @@ static void clean_up_base_environment(void) ...@@ -146,9 +146,16 @@ static void clean_up_base_environment(void)
{ {
BOOL result; BOOL result;
SetLastError(0xdeadbeef);
result = CryptReleaseContext(hProv, 1); result = CryptReleaseContext(hProv, 1);
ok(!result && GetLastError()==NTE_BAD_FLAGS, "%08x\n", GetLastError()); ok(!result || broken(result) /* Win98 */, "Expected failure\n");
ok(GetLastError()==NTE_BAD_FLAGS, "Expected NTE_BAD_FLAGS, got %08x\n", GetLastError());
/* Just to prove that Win98 also released the CSP */
SetLastError(0xdeadbeef);
result = CryptReleaseContext(hProv, 0);
ok(!result && GetLastError()==ERROR_INVALID_PARAMETER, "%08x\n", GetLastError());
CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET); CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
} }
......
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