mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 07:00:30 +00:00
d3dx9_36: Return on error (coverity).
This commit is contained in:
parent
93936c4f99
commit
e15618a896
@ -3582,7 +3582,7 @@ static HRESULT filedata_get_name(IDirectXFileData *filedata, char **name)
|
||||
hr = IDirectXFileObject_GetName(filedata, *name, &name_len);
|
||||
if (FAILED(hr))
|
||||
HeapFree(GetProcessHeap(), 0, *name);
|
||||
if (!name_len)
|
||||
else if (!name_len)
|
||||
(*name)[0] = 0;
|
||||
|
||||
return hr;
|
||||
|
Loading…
Reference in New Issue
Block a user