[PATCH] crypt32/tests: Accept Windows 10 Error code

Detlef Riekenberg wine.dev at web.de
Sat Feb 20 15:01:31 CST 2016


--
bye bye ... Detlef

Signed-off-by: Detlef Riekenberg <wine.dev at web.de>
---
 dlls/crypt32/tests/chain.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index b7fe08b..be2ec54 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -125,8 +125,10 @@ static void testCreateCertChainEngine(void)
     CertAddEncodedCertificateToStore(store, X509_ASN_ENCODING, selfSignedCert,
      sizeof(selfSignedCert), CERT_STORE_ADD_ALWAYS, NULL);
     ret = pCertCreateCertificateChainEngine(pConfig, &engine);
-    ok(!ret && GetLastError() == CRYPT_E_NOT_FOUND,
-     "Expected CRYPT_E_NOT_FOUND, got %08x\n", GetLastError());
+    /* ERROR_FILE_NOT_FOUND used in Windows 10 */
+    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);
 }
-- 
2.5.0




More information about the wine-patches mailing list