Greg Geldorp : rsaenh/tests: CryptGetKeyParam doesn't fail on Win7/Win2K8R2 .
Alexandre Julliard
julliard at winehq.org
Mon Dec 20 17:49:50 CST 2010
Module: wine
Branch: master
Commit: ad8ce8388b199474db47edc8eb5c00590670708c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad8ce8388b199474db47edc8eb5c00590670708c
Author: Greg Geldorp <ggeldorp at vmware.com>
Date: Mon Dec 20 00:32:18 2010 +0100
rsaenh/tests: CryptGetKeyParam doesn't fail on Win7/Win2K8R2.
---
dlls/rsaenh/tests/rsaenh.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 8f46a09..7892f1a 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -947,8 +947,8 @@ static void test_aes(int keylen)
/* AES provider doesn't support salt */
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
- ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == ERROR_NO_TOKEN /* Win7 */),
- "expected NTE_BAD_KEY or ERROR_NO_TOKEN, got %08x\n", GetLastError());
+ ok((!result && GetLastError() == NTE_BAD_KEY) || result /* Win7 */,
+ "expected NTE_BAD_KEY, got %08x\n", GetLastError());
dwLen = 13;
result = CryptEncrypt(hKey, 0, TRUE, 0, pbData, &dwLen, 16);
More information about the wine-cvs
mailing list