Skip to content
Snippets Groups Projects
Commit 0624ba1b authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard
Browse files

crypt32: Don't crash on freeing null chain engine.

parent c33f0c55
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment