mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
crypt32/tests: Accept Windows 10 error code.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
965dee67c1
commit
c957ff6c4c
1 changed files with 4 additions and 2 deletions
|
@ -125,8 +125,10 @@ static void testCreateCertChainEngine(void)
|
||||||
CertAddEncodedCertificateToStore(store, X509_ASN_ENCODING, selfSignedCert,
|
CertAddEncodedCertificateToStore(store, X509_ASN_ENCODING, selfSignedCert,
|
||||||
sizeof(selfSignedCert), CERT_STORE_ADD_ALWAYS, NULL);
|
sizeof(selfSignedCert), CERT_STORE_ADD_ALWAYS, NULL);
|
||||||
ret = pCertCreateCertificateChainEngine(pConfig, &engine);
|
ret = pCertCreateCertificateChainEngine(pConfig, &engine);
|
||||||
ok(!ret && GetLastError() == CRYPT_E_NOT_FOUND,
|
/* ERROR_FILE_NOT_FOUND used in Windows 10 */
|
||||||
"Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
|
ok(!ret && ((GetLastError() == CRYPT_E_NOT_FOUND) ||
|
||||||
|
(GetLastError() == ERROR_FILE_NOT_FOUND)),
|
||||||
|
"Expected CRYPT_E_NOT_FOUND or ERROR_FILE_NOT_FOUND, got %08x\n", GetLastError());
|
||||||
|
|
||||||
CertCloseStore(store, 0);
|
CertCloseStore(store, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue