[PATCH] d3dxof: Don't Release a garbage object pointer (Clang).
Charles Davis
cdavis5x at gmail.com
Fri Sep 14 00:35:20 CDT 2012
From: Charles Davis <cdavis at mymail.mines.edu>
---
dlls/d3dxof/d3dxof.c | 4 ++--
1 file 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)
--
1.7.12
More information about the wine-patches
mailing list