advapi32/tests: Fix a test failure on older NT4.
This commit is contained in:
parent
a4e2f47c2d
commit
c21033c5e9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue