Commit 221fd399 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

crypt32: Fixed copy and paste error in engine creation (Coverity).

parent ecd24b5a
...@@ -185,14 +185,14 @@ static CertificateChainEngine *get_chain_engine(HCERTCHAINENGINE handle, BOOL al ...@@ -185,14 +185,14 @@ static CertificateChainEngine *get_chain_engine(HCERTCHAINENGINE handle, BOOL al
if(!allow_default) if(!allow_default)
return NULL; return NULL;
if(!default_cu_engine) { if(!default_lm_engine) {
handle = CRYPT_CreateChainEngine(NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, &config); handle = CRYPT_CreateChainEngine(NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, &config);
InterlockedCompareExchangePointer((void**)&default_lm_engine, handle, NULL); InterlockedCompareExchangePointer((void**)&default_lm_engine, handle, NULL);
if(default_lm_engine != handle) if(default_lm_engine != handle)
CertFreeCertificateChainEngine(handle); CertFreeCertificateChainEngine(handle);
} }
return default_cu_engine; return default_lm_engine;
} }
return (CertificateChainEngine*)handle; return (CertificateChainEngine*)handle;
......
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