Commit 42be55d7 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Fix a regression in chain tests.

Relaxing the tests on older versions of Windows caused a couple tests to fail on more recent ones, which was unintended.
parent e9996b9b
...@@ -1183,7 +1183,7 @@ static void checkElementStatus(const CERT_TRUST_STATUS *expected, ...@@ -1183,7 +1183,7 @@ static void checkElementStatus(const CERT_TRUST_STATUS *expected,
else else
ok(got->dwErrorStatus == expected->dwErrorStatus || ok(got->dwErrorStatus == expected->dwErrorStatus ||
broken((got->dwErrorStatus & ~ignore->dwErrorStatus) == broken((got->dwErrorStatus & ~ignore->dwErrorStatus) ==
expected->dwErrorStatus), (expected->dwErrorStatus & ~ignore->dwErrorStatus)),
"Chain %d, element [%d,%d]: expected error %08x, got %08x\n", "Chain %d, element [%d,%d]: expected error %08x, got %08x\n",
testIndex, chainIndex, elementIndex, expected->dwErrorStatus, testIndex, chainIndex, elementIndex, expected->dwErrorStatus,
got->dwErrorStatus); got->dwErrorStatus);
...@@ -1258,7 +1258,8 @@ static void checkChainStatus(PCCERT_CHAIN_CONTEXT chain, ...@@ -1258,7 +1258,8 @@ static void checkChainStatus(PCCERT_CHAIN_CONTEXT chain,
chainStatus->status.dwErrorStatus || chainStatus->status.dwErrorStatus ||
broken((chain->TrustStatus.dwErrorStatus & broken((chain->TrustStatus.dwErrorStatus &
~chainStatus->statusToIgnore.dwErrorStatus) == ~chainStatus->statusToIgnore.dwErrorStatus) ==
chainStatus->status.dwErrorStatus), (chainStatus->status.dwErrorStatus &
~chainStatus->statusToIgnore.dwErrorStatus)),
"Chain %d: expected error %08x, got %08x\n", "Chain %d: expected error %08x, got %08x\n",
testIndex, chainStatus->status.dwErrorStatus, testIndex, chainStatus->status.dwErrorStatus,
chain->TrustStatus.dwErrorStatus); chain->TrustStatus.dwErrorStatus);
......
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