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

oldstable
Juan Lang 2010-10-01 15:06:35 -07:00 committed by Alexandre Julliard
parent e47fae98e3
commit 99e557f02b
1 changed files with 2 additions and 2 deletions

View File

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