Commit fd77bc5f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

crypt32/tests: Fix a test failure on Win9x.

parent d5e9c3cf
...@@ -2977,12 +2977,14 @@ static void test_msg_control(void) ...@@ -2977,12 +2977,14 @@ static void test_msg_control(void)
"expected NTE_BAD_SIGNATURE or OSS_DATA_ERROR, got %08x\n", "expected NTE_BAD_SIGNATURE or OSS_DATA_ERROR, got %08x\n",
GetLastError()); GetLastError());
/* Now that the signature's been checked, can't do the final update */ /* Now that the signature's been checked, can't do the final update */
SetLastError(0xdeadbeef);
ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), TRUE); ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), TRUE);
todo_wine todo_wine
ok(!ret && ok((!ret &&
(GetLastError() == NTE_BAD_HASH_STATE || (GetLastError() == NTE_BAD_HASH_STATE ||
GetLastError() == NTE_BAD_ALGID || /* Win9x */ GetLastError() == NTE_BAD_ALGID || /* Win9x */
GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */ GetLastError() == CRYPT_E_MSG_ERROR)) || /* Vista */
broken(ret), /* Win9x */
"expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID or CRYPT_E_MSG_ERROR, " "expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID or CRYPT_E_MSG_ERROR, "
"got %08x\n", GetLastError()); "got %08x\n", GetLastError());
CryptMsgClose(msg); CryptMsgClose(msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment