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

advapi32/tests: Fix a test failure on W2K and lower.

parent 1d134f74
......@@ -968,7 +968,10 @@ static void hashtest(void)
ret = pCryptImportKey(provider, (BYTE*)&key_blob,
sizeof(BLOBHEADER)+sizeof(DWORD)+key_length,
0, CRYPT_IPSEC_HMAC_KEY, &hkey);
ok(ret, "CryptImportKey error %u\n", GetLastError());
/* CRYPT_IPSEC_HMAC_KEY is not supported on W2K and lower */
ok(ret ||
broken(!ret && GetLastError() == NTE_BAD_FLAGS),
"CryptImportKey error %u\n", GetLastError());
pCryptDestroyKey(hkey);
pCryptReleaseContext(provider, 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