Commit 99e557f0 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

cryptui: Check whether caller called WinVerifyTrust when deciding whether to call it.

parent e47fae98
......@@ -4434,7 +4434,7 @@ BOOL WINAPI CryptUIDlgViewCertificateW(
}
/* Make a local copy in case we have to call WinVerifyTrust ourselves */
memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
if (!viewInfo.u.hWVTStateData)
if (!pCertViewInfo->u.hWVTStateData)
{
memset(&wvt, 0, sizeof(wvt));
wvt.cbStruct = sizeof(wvt);
......@@ -4476,7 +4476,7 @@ BOOL WINAPI CryptUIDlgViewCertificateW(
if (ret)
{
ret = show_cert_dialog(&viewInfo, provCert, pfPropertiesChanged);
if (!viewInfo.u.hWVTStateData)
if (!pCertViewInfo->u.hWVTStateData)
{
wvt.dwStateAction = WTD_STATEACTION_CLOSE;
WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment