cryptui: Fix a crash with certification path (resend)
Juan Lang
juan.lang at gmail.com
Wed Oct 6 11:08:09 CDT 2010
>>> @@ -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)
That's a bit different. I wonder if there's a wintrust bug that leads
to this? Any chance of opening a bug and attaching the cert that
produces the crash to it?
--Juan
More information about the wine-devel
mailing list