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

This commit is contained in:
Paul Vriens 2009-10-13 20:55:34 +02:00 committed by Alexandre Julliard
parent 1d134f74ab
commit b4955e5779
1 changed files with 4 additions and 1 deletions

View File

@ -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);