mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 15:01:06 +00:00
wintrust: Don't dereference a potentially NULL pointer.
This commit is contained in:
parent
e6a4a86608
commit
ba78b54820
|
@ -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