Module: wine Branch: master Commit: 5a9587949f7b6da2a4a853b22c897bd408fbe77e URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a9587949f7b6da2a4a853b22c...
Author: James Hawkins jhawkins@codeweavers.com Date: Tue Sep 2 00:55:26 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 13f40f0..2783815 100644 --- a/dlls/crypt32/tests/msg.c +++ b/dlls/crypt32/tests/msg.c @@ -2712,8 +2712,10 @@ static void test_msg_control(void) SetLastError(0xdeadbeef); 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);
/* Finally, verifying the hash of a detached message in the correct order: