crypt32/tests: Fix some tests on win9x.
This commit is contained in:
parent
846e613b87
commit
76ca951fab
|
@ -2715,8 +2715,10 @@ static void test_msg_control(void)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(!ret &&
|
ok(!ret &&
|
||||||
(GetLastError() == NTE_BAD_HASH_STATE ||
|
(GetLastError() == NTE_BAD_HASH_STATE ||
|
||||||
|
GetLastError() == NTE_BAD_ALGID || /* Win9x */
|
||||||
GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
|
GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
|
||||||
"Expected NTE_BAD_HASH_STATE or CRYPT_E_MSG_ERROR, got %08x\n", GetLastError());
|
"Expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID or CRYPT_E_MSG_ERROR, "
|
||||||
|
"got %08x\n", GetLastError());
|
||||||
CryptMsgClose(msg);
|
CryptMsgClose(msg);
|
||||||
|
|
||||||
/* Finally, verifying the hash of a detached message in the correct order:
|
/* Finally, verifying the hash of a detached message in the correct order:
|
||||||
|
@ -2859,8 +2861,10 @@ static void test_msg_control(void)
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(!ret &&
|
ok(!ret &&
|
||||||
(GetLastError() == NTE_BAD_HASH_STATE ||
|
(GetLastError() == NTE_BAD_HASH_STATE ||
|
||||||
|
GetLastError() == NTE_BAD_ALGID || /* Win9x */
|
||||||
GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
|
GetLastError() == CRYPT_E_MSG_ERROR), /* Vista */
|
||||||
"expected NTE_BAD_HASH_STATE or CRYPT_E_MSG_ERROR, got %08x\n", GetLastError());
|
"expected NTE_BAD_HASH_STATE or NTE_BAD_ALGID or CRYPT_E_MSG_ERROR, "
|
||||||
|
"got %08x\n", GetLastError());
|
||||||
CryptMsgClose(msg);
|
CryptMsgClose(msg);
|
||||||
/* Updating with the detached portion of the message and the data of the
|
/* Updating with the detached portion of the message and the data of the
|
||||||
* the message allows the sig to be verified.
|
* the message allows the sig to be verified.
|
||||||
|
|
Loading…
Reference in New Issue