Module: wine Branch: master Commit: b8243b01b5461a029fde50a6dd5a15a5178836eb URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8243b01b5461a029fde50a6dd...
Author: Charles Davis cdavis5x@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)