cryptui: Don't crash displaying a certificate hierarchy when the certificate's signer isn't found.

Spotted by André Hentschel.
This commit is contained in:
Juan Lang 2010-10-06 11:39:58 -07:00 committed by Alexandre Julliard
parent 6e89a61446
commit d48a56db5c
1 changed files with 2 additions and 2 deletions

View File

@ -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