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

This commit is contained in:
Henri Verbeet 2012-03-13 20:31:35 +01:00 committed by Alexandre Julliard
parent 9157006fc1
commit d92a103fc0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}