[PATCH 4/5] dxgi: Don't return a pointer to the implementation in dxgi_surface_inner_QueryInterface().

Henri Verbeet hverbeet at codeweavers.com
Thu Apr 5 12:55:37 CDT 2012


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

diff --git a/dlls/dxgi/surface.c b/dlls/dxgi/surface.c
index 4a5ea02..374832b 100644
--- a/dlls/dxgi/surface.c
+++ b/dlls/dxgi/surface.c
@@ -43,7 +43,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_surface_inner_QueryInterface(IUnknown *ifa
             || IsEqualGUID(riid, &IID_IUnknown))
     {
         IDXGISurface_AddRef(&This->IDXGISurface_iface);
-        *object = This;
+        *object = &This->IDXGISurface_iface;
         return S_OK;
     }
 
-- 
1.7.3.4




More information about the wine-patches mailing list