Do not forget to AddRef the returned Direct3D interface.

This commit is contained in:
Lionel Ulmer 2002-11-30 01:53:44 +00:00 committed by Alexandre Julliard
parent bc8cc53163
commit 5cb15cda5e
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ Main_IDirect3DDeviceImpl_7_3T_2T_1T_GetDirect3D(LPDIRECT3DDEVICE7 iface,
TRACE("(%p/%p)->(%p)\n", This, iface, lplpDirect3D3);
*lplpDirect3D3 = ICOM_INTERFACE(This->d3d, IDirect3D7);
IDirect3D7_AddRef(ICOM_INTERFACE(This->d3d, IDirect3D7));
TRACE(" returning interface %p\n", *lplpDirect3D3);
return DD_OK;
}