Commit 1779c64b authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

crypt32: Fix a failing test in win9x.

parent a58945de
...@@ -359,10 +359,17 @@ static void testAddCTLToStore(void) ...@@ -359,10 +359,17 @@ static void testAddCTLToStore(void)
signedCTLWithCTLInnerContentAndBadSig, signedCTLWithCTLInnerContentAndBadSig,
sizeof(signedCTLWithCTLInnerContentAndBadSig), CERT_STORE_ADD_NEW, sizeof(signedCTLWithCTLInnerContentAndBadSig), CERT_STORE_ADD_NEW,
NULL); NULL);
ok(!ret && if (ret)
(GetLastError() == CRYPT_E_EXISTS || {
GetLastError() == CRYPT_E_NOT_FOUND), /* win9x */ /* win9x */
"expected CRYPT_E_EXISTS, got %d %08x\n", ret, GetLastError()); 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); CertCloseStore(store, 0);
store = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0, store = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,
......
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