Commit 5e1753f0 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

quartz: Close hfile when GetFileSizeEx fails in IFileSourceFilter::Load() (Coverity).

parent e13f5a1b
...@@ -478,6 +478,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi ...@@ -478,6 +478,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
if (!GetFileSizeEx(hFile, &This->file_size)) if (!GetFileSizeEx(hFile, &This->file_size))
{ {
WARN("Could not get file size.\n"); WARN("Could not get file size.\n");
CloseHandle(hFile);
return HRESULT_FROM_WIN32(GetLastError()); return HRESULT_FROM_WIN32(GetLastError());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment