Module: wine Branch: master Commit: 9157006fc17fb8f17adc8536391ef562d2f690f4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9157006fc17fb8f17adc853639...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Mar 13 20:31:34 2012 +0100
ddraw: Don't return a pointer to the implementation in IDirect3DDeviceImpl_7_QueryInterface().
---
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); }