mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wintrust: Don't dereference a potentially NULL pointer.
This commit is contained in:
parent
e6a4a86608
commit
ba78b54820
1 changed files with 2 additions and 1 deletions
|
@ -1207,7 +1207,8 @@ HRESULT WINAPI SoftpubCleanup(CRYPT_PROVIDER_DATA *data)
|
|||
CryptMsgClose(data->hMsg);
|
||||
|
||||
if (data->fOpenedFile &&
|
||||
data->pWintrustData->dwUnionChoice == WTD_CHOICE_FILE)
|
||||
data->pWintrustData->dwUnionChoice == WTD_CHOICE_FILE &&
|
||||
data->pWintrustData->u.pFile)
|
||||
CloseHandle(data->pWintrustData->u.pFile->hFile);
|
||||
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in a new issue