Paul Vriens : rsaenh/tests: Fix a test failure on NT4 and below.
Alexandre Julliard
julliard at winehq.org
Thu Nov 6 08:26:06 CST 2008
Module: wine
Branch: master
Commit: 9a2fdfd66b11cf611f674fea0d6a1f0ccdd0162d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a2fdfd66b11cf611f674fea0d6a1f0ccdd0162d
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Thu Nov 6 09:52:02 2008 +0100
rsaenh/tests: Fix a test failure on NT4 and below.
---
dlls/rsaenh/tests/rsaenh.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 3755323..c1ab31d 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -379,7 +379,10 @@ static void test_hashes(void)
/* Can't add data after the hash been retrieved */
SetLastError(0xdeadbeef);
result = CryptHashData(hHash, (BYTE*)pbData, sizeof(pbData), 0);
- ok(!result && GetLastError() == NTE_BAD_HASH_STATE, "%08x\n", GetLastError());
+ ok(!result, "Expected failure\n");
+ ok(GetLastError() == NTE_BAD_HASH_STATE ||
+ GetLastError() == NTE_BAD_ALGID, /* Win9x, WinMe, NT4 */
+ "Expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID, got %08x\n", GetLastError());
/* You can still retrieve the hash, its value just hasn't changed */
result = CryptGetHashParam(hHash, HP_HASHVAL, pbHashValue, &len, 0);
More information about the wine-cvs
mailing list