cryptui: Fix a crash with certification path (resend)
André Hentschel
nerv at dawncrow.de
Wed Oct 6 10:45:04 CDT 2010
Am 06.10.2010 17:41, schrieb Alexandre Julliard:
> André Hentschel <nerv at dawncrow.de> writes:
>
>> @@ -4051,8 +4050,8 @@ static void show_cert_chain(HWND hwnd, struct hierarchy_data *data)
>> */
>> tvis.u.item.iImage = 2;
>> }
>> - else if (provSigner->pasCertChain[i - 1].pChainElement->TrustStatus.
>> - dwErrorStatus == 0)
>> + else if (i > 1 &&
>> + provSigner->pasCertChain[i - 1].pChainElement->TrustStatus.dwErrorStatus == 0)
>
> What is this change for?
>
there is no pasCertChain[0] for some reason, there is a similar check in show_dialog_for_selected_cert (same file, "selection" is checked for not being 0 and used as index for pasCertChain)
--
Best Regards, André Hentschel
More information about the wine-devel
mailing list