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:
parent
6e89a61446
commit
d48a56db5c
|
@ -4040,8 +4040,8 @@ static void show_cert_chain(HWND hwnd, struct hierarchy_data *data)
|
||||||
tvis.u.item.pszText = name;
|
tvis.u.item.pszText = name;
|
||||||
tvis.u.item.state = TVIS_EXPANDED;
|
tvis.u.item.state = TVIS_EXPANDED;
|
||||||
tvis.u.item.stateMask = TVIS_EXPANDED;
|
tvis.u.item.stateMask = TVIS_EXPANDED;
|
||||||
if (i == 1 &&
|
if (i == 1 && (!provSigner->pChainContext ||
|
||||||
(provSigner->pChainContext->TrustStatus.dwErrorStatus &
|
provSigner->pChainContext->TrustStatus.dwErrorStatus &
|
||||||
CERT_TRUST_IS_PARTIAL_CHAIN))
|
CERT_TRUST_IS_PARTIAL_CHAIN))
|
||||||
{
|
{
|
||||||
/* The root of the chain has a special case: if the chain is
|
/* The root of the chain has a special case: if the chain is
|
||||||
|
|
Loading…
Reference in New Issue