d3dx9_36: Fix free of address-of expression (coverity).

This commit is contained in:
André Hentschel 2012-10-24 20:53:00 +02:00 committed by Alexandre Julliard
parent bbefb29d1c
commit 8f6b6303ec
1 changed files with 1 additions and 1 deletions

View File

@ -3590,7 +3590,7 @@ static HRESULT filedata_get_name(IDirectXFileData *filedata, char **name)
hr = IDirectXFileObject_GetName(filedata, *name, &name_len);
if (FAILED(hr))
HeapFree(GetProcessHeap(), 0, name);
HeapFree(GetProcessHeap(), 0, *name);
if (!name_len)
(*name)[0] = 0;