Paul Vriens : advapi32/tests: Fix a test failure on W2K and lower.
Alexandre Julliard
julliard at winehq.org
Wed Oct 14 09:01:58 CDT 2009
Module: wine
Branch: master
Commit: b4955e57793b8c241ec5ed7f71b61739dad425f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4955e57793b8c241ec5ed7f71b61739dad425f5
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Tue Oct 13 20:55:34 2009 +0200
advapi32/tests: Fix a test failure on W2K and lower.
---
dlls/advapi32/tests/crypt.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c
index 08c53f0..e4b5934 100644
--- a/dlls/advapi32/tests/crypt.c
+++ b/dlls/advapi32/tests/crypt.c
@@ -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);
More information about the wine-cvs
mailing list