James Hawkins : crypt32: Fix a failing test in Vista.
Alexandre Julliard
julliard at winehq.org
Thu Sep 11 08:00:33 CDT 2008
Module: wine
Branch: master
Commit: a4d375c9f02eff7c9a872ef5f4692dd8a8ef395a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a4d375c9f02eff7c9a872ef5f4692dd8a8ef395a
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Wed Sep 10 23:00:17 2008 -0500
crypt32: Fix a failing test in Vista.
---
dlls/crypt32/tests/msg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index b03f5a4..78d49d8 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -2856,8 +2856,10 @@ static void test_msg_control(void)
/* Now that the signature's been checked, can't do the final update */
ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), TRUE);
todo_wine
- ok(!ret && GetLastError() == NTE_BAD_HASH_STATE,
- "expected NTE_BAD_HASH_STATE, got %08x\n", GetLastError());
+ ok(!ret &&
+ (GetLastError() == NTE_BAD_HASH_STATE ||
+ GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
+ "expected NTE_BAD_HASH_STATE or CRYPT_E_MSG_ERROR, got %08x\n", GetLastError());
CryptMsgClose(msg);
/* Updating with the detached portion of the message and the data of the
* the message allows the sig to be verified.
More information about the wine-cvs
mailing list