mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 19:39:00 +00:00
wintrust: Only close a file in SoftpubCleanup if the WINTRUST_DATA contains a WINTRUST_FILE_INFO.
This commit is contained in:
parent
d8094382a8
commit
f4b359942b
@ -1078,7 +1078,8 @@ HRESULT WINAPI SoftpubCleanup(CRYPT_PROVIDER_DATA *data)
|
||||
|
||||
CryptMsgClose(data->hMsg);
|
||||
|
||||
if (data->fOpenedFile)
|
||||
if (data->fOpenedFile &&
|
||||
data->pWintrustData->dwUnionChoice == WTD_CHOICE_FILE)
|
||||
CloseHandle(data->pWintrustData->u.pFile->hFile);
|
||||
|
||||
return S_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user