Skip to content
Snippets Groups Projects
Commit 5cb15cda authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard
Browse files

Do not forget to AddRef the returned Direct3D interface.

parent bc8cc531
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment