Commit bd072332 authored by Markus Amsler's avatar Markus Amsler Committed by Alexandre Julliard

Revert "d3d: Remove AddRef from IWineD3DDevice_GetDirect3D.".

This reverts commit 167b83c2.
parent f8e7ddd7
......@@ -139,6 +139,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetDirect3D(LPDIRECT3DDEVICE8 iface,
if (hr == D3D_OK && pWineD3D != NULL)
{
IWineD3DResource_GetParent((IWineD3DResource *)pWineD3D,(IUnknown **)ppD3D8);
IWineD3DResource_Release((IWineD3DResource *)pWineD3D);
} else {
FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
*ppD3D8 = NULL;
......
......@@ -101,6 +101,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetDirect3D(LPDIRECT3DDEVICE9 iface, IDire
if (hr == D3D_OK && pWineD3D != NULL)
{
IWineD3DResource_GetParent((IWineD3DResource *)pWineD3D,(IUnknown **)ppD3D9);
IWineD3DResource_Release((IWineD3DResource *)pWineD3D);
} else {
FIXME("Call to IWineD3DDevice_GetDirect3D failed\n");
*ppD3D9 = NULL;
......
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