From: Sven Baars sbaars@codeweavers.com
--- dlls/d3dxof/d3dxof.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 9ed02e1bdf9..250af38c895 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -148,7 +148,8 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV if (hFile == INVALID_HANDLE_VALUE) { TRACE("File '%s' not found\n", (char*)pvSource); - return DXFILEERR_FILENOTFOUND; + hr = DXFILEERR_FILENOTFOUND; + goto error; }
file_size = GetFileSize(hFile, NULL);