Commit d92a103f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Don't return a pointer to the implementation in IDirect3DMaterialImpl_QueryInterface().

parent 9157006f
......@@ -94,7 +94,7 @@ static HRESULT WINAPI IDirect3DMaterialImpl_QueryInterface(IDirect3DMaterial3 *i
}
if ( IsEqualGUID( &IID_IDirect3DMaterial3, riid ) ) {
IDirect3DMaterial3_AddRef(&This->IDirect3DMaterial3_iface);
*obp = This;
*obp = &This->IDirect3DMaterial3_iface;
TRACE(" Creating IDirect3DMaterial3 interface %p\n", *obp);
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment