Revert "d3d: Fix partially applied patch: Remove AddRef from GetDirect3D.".

Removing COM in d3d is not feasible as long as we use inheritance. So
stick to the COM refcount rules.
This reverts commit 3fd8fe089c.
This commit is contained in:
Markus Amsler 2006-11-30 13:32:58 +01:00 committed by Alexandre Julliard
parent e521ee2cee
commit 0bff261cfa
1 changed files with 1 additions and 0 deletions

View File

@ -2305,6 +2305,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetDirect3D(IWineD3DDevice *iface, IWin
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
*ppD3D= This->wineD3D;
TRACE("(%p) : wineD3D returning %p\n", This, *ppD3D);
IWineD3D_AddRef(*ppD3D);
return WINED3D_OK;
}