Charles Davis : d3dxof: Don't release a garbage object pointer (Clang).

Alexandre Julliard julliard at winehq.org
Fri Sep 14 10:54:21 CDT 2012


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

Author: Charles Davis <cdavis5x at gmail.com>
Date:   Thu Sep 13 23:35:20 2012 -0600

d3dxof: Don't release a garbage object pointer (Clang).

---

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

diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index 3ba92e2..02ed593 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -999,8 +999,8 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
   /* Check if there are templates defined before the object */
   if (!parse_templates(&This->buf))
   {
-    hr = DXFILEERR_BADVALUE;
-    goto error;
+    *ppDataObj = NULL;
+    return DXFILEERR_BADVALUE;
   }
 
   if (!This->buf.rem_bytes)




More information about the wine-cvs mailing list