Module: wine Branch: master Commit: 489e59f83d3b7f1f5a9c94a0a419a00ddfd089d9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=489e59f83d3b7f1f5a9c94a0a4...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Tue Nov 25 17:13:06 2008 +0100
rsaenh/tests: Fix a test failure on W2K and below.
---
dlls/rsaenh/tests/rsaenh.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 9e14558..05f4cdf 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -1080,8 +1080,10 @@ static void test_mac(void) { /* Provoke errors */ if (!derive_key(CALG_RC4, &hKey, 56)) return;
+ SetLastError(0xdeadbeef); result = CryptCreateHash(hProv, CALG_MAC, hKey, 0, &hHash); - ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == NTE_FAIL), + ok((!result && GetLastError() == NTE_BAD_KEY) || + broken(result), /* Win9x, WinMe, NT4, W2K */ "%08x\n", GetLastError());
result = CryptDestroyKey(hKey);