cryptui: Check whether caller called WinVerifyTrust when deciding whether to call it.
This commit is contained in:
parent
e47fae98e3
commit
99e557f02b
@ -4434,7 +4434,7 @@ BOOL WINAPI CryptUIDlgViewCertificateW(
|
|||||||
}
|
}
|
||||||
/* Make a local copy in case we have to call WinVerifyTrust ourselves */
|
/* Make a local copy in case we have to call WinVerifyTrust ourselves */
|
||||||
memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
|
memcpy(&viewInfo, pCertViewInfo, sizeof(viewInfo));
|
||||||
if (!viewInfo.u.hWVTStateData)
|
if (!pCertViewInfo->u.hWVTStateData)
|
||||||
{
|
{
|
||||||
memset(&wvt, 0, sizeof(wvt));
|
memset(&wvt, 0, sizeof(wvt));
|
||||||
wvt.cbStruct = sizeof(wvt);
|
wvt.cbStruct = sizeof(wvt);
|
||||||
@ -4476,7 +4476,7 @@ BOOL WINAPI CryptUIDlgViewCertificateW(
|
|||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
ret = show_cert_dialog(&viewInfo, provCert, pfPropertiesChanged);
|
ret = show_cert_dialog(&viewInfo, provCert, pfPropertiesChanged);
|
||||||
if (!viewInfo.u.hWVTStateData)
|
if (!pCertViewInfo->u.hWVTStateData)
|
||||||
{
|
{
|
||||||
wvt.dwStateAction = WTD_STATEACTION_CLOSE;
|
wvt.dwStateAction = WTD_STATEACTION_CLOSE;
|
||||||
WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
|
WinVerifyTrust(NULL, &generic_cert_verify, &wvt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user