d3dx9_36: Return on error (coverity).

This commit is contained in:
André Hentschel 2012-11-03 17:26:26 +01:00 committed by Alexandre Julliard
parent 93936c4f99
commit e15618a896

View File

@ -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;