From b8243b01b5461a029fde50a6dd5a15a5178836eb Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Thu, 13 Sep 2012 23:35:20 -0600 Subject: [PATCH] d3dxof: Don't release a garbage object pointer (Clang). --- 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 3ba92e2f442..02ed5936745 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)