Juan Lang : cryptui: Don' t crash displaying a certificate hierarchy when the certificate' s signer isn't found.
Alexandre Julliard
julliard at winehq.org
Thu Oct 7 11:24:24 CDT 2010
Module: wine
Branch: master
Commit: d48a56db5cc99358fd181eb14083a4189370150c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d48a56db5cc99358fd181eb14083a4189370150c
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Oct 6 11:39:58 2010 -0700
cryptui: Don't crash displaying a certificate hierarchy when the certificate's signer isn't found.
Spotted by André Hentschel.
---
dlls/cryptui/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index 339ad61..3a8f8f8 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -4040,8 +4040,8 @@ static void show_cert_chain(HWND hwnd, struct hierarchy_data *data)
tvis.u.item.pszText = name;
tvis.u.item.state = TVIS_EXPANDED;
tvis.u.item.stateMask = TVIS_EXPANDED;
- if (i == 1 &&
- (provSigner->pChainContext->TrustStatus.dwErrorStatus &
+ if (i == 1 && (!provSigner->pChainContext ||
+ provSigner->pChainContext->TrustStatus.dwErrorStatus &
CERT_TRUST_IS_PARTIAL_CHAIN))
{
/* The root of the chain has a special case: if the chain is
More information about the wine-cvs
mailing list