[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: Revert [9] "d3d: Remove AddRef from IWineD3DDevice_GetDirect3D."
From: Markus Amsler <markus.amsler () oribi ! org>
Date: 2006-11-30 12:34:01
Message-ID: 456ECFB9.7000601 () oribi ! org
[Download RAW message or body]
This reverts commit 167b83c28af73803462e92ee4dcb1a95f194a74d.
---
dlls/d3d8/device.c | 1 +
dlls/d3d9/device.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
["b84ac9a9862569ccd394a1630697aa3af479f255.diff" (text/x-patch)]
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index e128930..68b0dff 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -139,6 +139,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
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;
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 2ebb677..349356b 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -101,6 +101,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_Ge
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic