From 1718a6cf1c557264f9cf7a886c401540fe003a5b Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 9 Apr 2012 20:43:42 +0200 Subject: [PATCH] d3dx9: Don't return a pointer to the implementation in ID3DXLineImpl_QueryInterface(). --- dlls/d3dx9_36/line.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/d3dx9_36/line.c b/dlls/d3dx9_36/line.c index 2a9d6e94c85..d9ec2e0cc9f 100644 --- a/dlls/d3dx9_36/line.c +++ b/dlls/d3dx9_36/line.c @@ -40,15 +40,13 @@ static inline ID3DXLineImpl *impl_from_ID3DXLine(ID3DXLine *iface) /*** IUnknown methods ***/ static HRESULT WINAPI ID3DXLineImpl_QueryInterface(ID3DXLine* iface, REFIID riid, LPVOID* object) { - ID3DXLineImpl *This = impl_from_ID3DXLine(iface); - - TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), object); + TRACE("(%p)->(%s, %p)\n", iface, debugstr_guid(riid), object); if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_ID3DXLine)) { ID3DXLine_AddRef(iface); - *object = This; + *object = iface; return S_OK; } -- 2.11.4.GIT