mirror of
https://github.com/reactos/wine.git
synced 2025-02-10 06:14:29 +00:00
rsaenh/tests: Fix a test failure on W2K and below.
This commit is contained in:
parent
6d9bca7d94
commit
489e59f83d
@ -1080,8 +1080,10 @@ static void test_mac(void) {
|
|||||||
/* Provoke errors */
|
/* Provoke errors */
|
||||||
if (!derive_key(CALG_RC4, &hKey, 56)) return;
|
if (!derive_key(CALG_RC4, &hKey, 56)) return;
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
result = CryptCreateHash(hProv, CALG_MAC, hKey, 0, &hHash);
|
result = CryptCreateHash(hProv, CALG_MAC, hKey, 0, &hHash);
|
||||||
ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == NTE_FAIL),
|
ok((!result && GetLastError() == NTE_BAD_KEY) ||
|
||||||
|
broken(result), /* Win9x, WinMe, NT4, W2K */
|
||||||
"%08x\n", GetLastError());
|
"%08x\n", GetLastError());
|
||||||
|
|
||||||
result = CryptDestroyKey(hKey);
|
result = CryptDestroyKey(hKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user