Module: wine Branch: master Commit: 7e1ffa87c3e09d3477b13eca0d05bdf1048cfb0e URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e1ffa87c3e09d3477b13eca0d...
Author: André Hentschel nerv@dawncrow.de Date: Fri Apr 30 18:06:13 2010 +0200
rsaenh: Fix a testfailure on Win7.
---
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 cb560f2..d2ababf 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -1803,8 +1803,8 @@ static void test_rsa_encrypt(void)
/* An RSA key doesn't support salt */ result = CryptGetKeyParam(hRSAKey, KP_SALT, NULL, &dwLen, 0); - ok(!result && GetLastError() == NTE_BAD_KEY, - "expected NTE_BAD_KEY, got %08x\n", GetLastError()); + ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == NTE_NOT_FOUND /* Win7 */), + "expected NTE_BAD_KEY or NTE_NOT_FOUND, got %08x\n", GetLastError());
/* The key exchange key's public key may be exported.. */ result = CryptExportKey(hRSAKey, 0, PUBLICKEYBLOB, 0, NULL, &dwLen);