wintrust: Only check the pgKnownSubject member if the struct includes it.

This commit is contained in:
Juan Lang 2009-06-11 14:34:58 -07:00 committed by Alexandre Julliard
parent 5a981c3a64
commit 9ae0f7a191
1 changed files with 3 additions and 1 deletions

View File

@ -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,