Module: wine Branch: master Commit: 0624ba1b2e81795df579a0377eb993729836d289 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0624ba1b2e81795df579a037...
Author: Juan Lang juan_lang@yahoo.com Date: Wed Sep 20 11:49:48 2006 -0700
crypt32: Don't crash on freeing null chain engine.
---
dlls/crypt32/chain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index 9e2db16..147535d 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -163,7 +163,7 @@ void WINAPI CertFreeCertificateChainEngi
TRACE("(%p)\n", hChainEngine);
- if (InterlockedDecrement(&engine->ref) == 0) + if (engine && InterlockedDecrement(&engine->ref) == 0) { CertCloseStore(engine->hWorld, 0); CertCloseStore(engine->hRoot, 0);