crypt32: Fix a failing test in win9x.

This commit is contained in:
James Hawkins 2008-09-10 22:59:43 -05:00 committed by Alexandre Julliard
parent a58945de84
commit 1779c64ba0
1 changed files with 11 additions and 4 deletions

View File

@ -359,10 +359,17 @@ static void testAddCTLToStore(void)
signedCTLWithCTLInnerContentAndBadSig,
sizeof(signedCTLWithCTLInnerContentAndBadSig), CERT_STORE_ADD_NEW,
NULL);
ok(!ret &&
(GetLastError() == CRYPT_E_EXISTS ||
GetLastError() == CRYPT_E_NOT_FOUND), /* win9x */
"expected CRYPT_E_EXISTS, got %d %08x\n", ret, GetLastError());
if (ret)
{
/* win9x */
ok(GetLastError() == CRYPT_E_NOT_FOUND,
"Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
}
else
{
ok(!ret && GetLastError() == CRYPT_E_EXISTS,
"expected CRYPT_E_EXISTS, got %d %08x\n", ret, GetLastError());
}
CertCloseStore(store, 0);
store = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,