[PATCH 2/5] ddraw: Don't return a pointer to the implementation in IDirect3DDeviceImpl_7_QueryInterface().
Henri Verbeet
hverbeet at codeweavers.com
Tue Mar 13 14:31:34 CDT 2012
---
dlls/ddraw/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index e7f3faf..fb65272 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -175,7 +175,7 @@ IDirect3DDeviceImpl_7_QueryInterface(IDirect3DDevice7 *iface,
TRACE("(%p) Returning IDirect3DDevice3 interface at %p\n", This, *obj);
}
else if ( IsEqualGUID( &IID_IDirect3DDevice7 , refiid ) ) {
- *obj = This;
+ *obj = &This->IDirect3DDevice7_iface;
TRACE("(%p) Returning IDirect3DDevice7 interface at %p\n", This, *obj);
}
--
1.7.3.4
More information about the wine-patches
mailing list