crypt32: Don't crash on freeing null chain engine.
This commit is contained in:
parent
c33f0c555e
commit
0624ba1b2e
|
@ -163,7 +163,7 @@ void WINAPI CertFreeCertificateChainEngine(HCERTCHAINENGINE hChainEngine)
|
|||
|
||||
TRACE("(%p)\n", hChainEngine);
|
||||
|
||||
if (InterlockedDecrement(&engine->ref) == 0)
|
||||
if (engine && InterlockedDecrement(&engine->ref) == 0)
|
||||
{
|
||||
CertCloseStore(engine->hWorld, 0);
|
||||
CertCloseStore(engine->hRoot, 0);
|
||||
|
|
Loading…
Reference in New Issue