Commit e15618a8 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

d3dx9_36: Return on error (coverity).

parent 93936c4f
......@@ -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;
......
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