crypt32/tests: Fix some test failures on older NT4 boxes.

This commit is contained in:
Paul Vriens 2009-03-13 09:36:38 +01:00 committed by Alexandre Julliard
parent 190ffe58b2
commit d11e14d77f
1 changed files with 6 additions and 2 deletions

View File

@ -416,11 +416,15 @@ static void test_data_msg_update(void)
*/ */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = CryptMsgUpdate(msg, NULL, 0, FALSE); ret = CryptMsgUpdate(msg, NULL, 0, FALSE);
ok(!ret && GetLastError() == E_INVALIDARG, ok(!ret &&
(GetLastError() == E_INVALIDARG ||
broken(GetLastError() == ERROR_SUCCESS)), /* Older NT4 */
"Expected E_INVALIDARG, got %x\n", GetLastError()); "Expected E_INVALIDARG, got %x\n", GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), FALSE); ret = CryptMsgUpdate(msg, msgData, sizeof(msgData), FALSE);
ok(!ret && GetLastError() == E_INVALIDARG, ok(!ret &&
(GetLastError() == E_INVALIDARG ||
broken(GetLastError() == ERROR_SUCCESS)), /* Older NT4 */
"Expected E_INVALIDARG, got %x\n", GetLastError()); "Expected E_INVALIDARG, got %x\n", GetLastError());
} }
else else