=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3dx9_36: Return on error (coverity) .

Alexandre Julliard julliard at winehq.org
Mon Nov 5 13:32:23 CST 2012


Module: wine
Branch: master
Commit: e15618a89649db1ee0b91d6120cf77806d0fa59f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e15618a89649db1ee0b91d6120cf77806d0fa59f

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sat Nov  3 17:26:26 2012 +0100

d3dx9_36: Return on error (coverity).

---

 dlls/d3dx9_36/mesh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 10c3a73..f1ad7c8 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -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;




More information about the wine-cvs mailing list