d3dx9_36: Return on error (coverity)

André Hentschel nerv at dawncrow.de
Sat Nov 3 11:26:26 CDT 2012


CID 714008
---
 dlls/d3dx9_36/mesh.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 10c3a73..858ea88 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -3581,7 +3581,11 @@ static HRESULT filedata_get_name(IDirectXFileData *filedata, char **name)
 
     hr = IDirectXFileObject_GetName(filedata, *name, &name_len);
     if (FAILED(hr))
+    {
         HeapFree(GetProcessHeap(), 0, *name);
+        return hr;
+    }
+
     if (!name_len)
         (*name)[0] = 0;
 
-- 
1.8.0


-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list