advapi32/tests: Fix a test failure on older NT4.

This commit is contained in:
Juan Lang 2012-02-12 17:49:19 -08:00 committed by Alexandre Julliard
parent a4e2f47c2d
commit c21033c5e9
1 changed files with 3 additions and 1 deletions

View File

@ -448,7 +448,9 @@ static void test_verify_sig(void)
"Expected NTE_BAD_SIGNATURE, got %08x\n", GetLastError());
SetLastError(0xdeadbeef);
ret = pCryptVerifySignatureW(hash, bogus, sizeof(bogus), key, NULL, 0);
ok(!ret && GetLastError() == NTE_BAD_SIGNATURE,
ok(!ret &&
(GetLastError() == NTE_BAD_SIGNATURE ||
broken(GetLastError() == NTE_BAD_HASH_STATE /* older NT4 */)),
"Expected NTE_BAD_SIGNATURE, got %08x\n", GetLastError());
pCryptDestroyKey(key);
pCryptDestroyHash(hash);