quartz: Close hfile when GetFileSizeEx fails in IFileSourceFilter::Load() (Coverity).
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com> Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e13f5a1b43
commit
5e1753f04d
|
@ -478,6 +478,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
|
|||
if (!GetFileSizeEx(hFile, &This->file_size))
|
||||
{
|
||||
WARN("Could not get file size.\n");
|
||||
CloseHandle(hFile);
|
||||
return HRESULT_FROM_WIN32(GetLastError());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue