wintrust: Only check the pgKnownSubject member if the struct includes it.
This commit is contained in:
parent
5a981c3a64
commit
9ae0f7a191
|
@ -90,7 +90,9 @@ static BOOL SOFTPUB_GetFileSubject(CRYPT_PROVIDER_DATA *data)
|
|||
{
|
||||
BOOL ret;
|
||||
|
||||
if (!data->pWintrustData->u.pFile->pgKnownSubject)
|
||||
if (!WVT_ISINSTRUCT(WINTRUST_FILE_INFO,
|
||||
data->pWintrustData->u.pFile->cbStruct, pgKnownSubject) ||
|
||||
!data->pWintrustData->u.pFile->pgKnownSubject)
|
||||
{
|
||||
ret = CryptSIPRetrieveSubjectGuid(
|
||||
data->pWintrustData->u.pFile->pcwszFilePath,
|
||||
|
|
Loading…
Reference in New Issue