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

This commit is contained in:
Marcus Meissner 2014-03-08 09:41:10 +01:00 committed by Alexandre Julliard
parent ecd24b5a87
commit 221fd39937
1 changed files with 2 additions and 2 deletions

View File

@ -185,14 +185,14 @@ static CertificateChainEngine *get_chain_engine(HCERTCHAINENGINE handle, BOOL al
if(!allow_default)
return NULL;
if(!default_cu_engine) {
if(!default_lm_engine) {
handle = CRYPT_CreateChainEngine(NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, &config);
InterlockedCompareExchangePointer((void**)&default_lm_engine, handle, NULL);
if(default_lm_engine != handle)
CertFreeCertificateChainEngine(handle);
}
return default_cu_engine;
return default_lm_engine;
}
return (CertificateChainEngine*)handle;