H. Verbeet : wined3d: Don' t use GetDevice in IWineD3DSurfaceImpl_GetContainer, as

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 27 09:33:11 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 7d97f29c24c3d2fb322109011d61cc2828672288
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7d97f29c24c3d2fb322109011d61cc2828672288

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Fri Feb 24 20:40:18 2006 +0000

wined3d: Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer, as
it adds a reference to the device that shouldn't be there.

---

 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 766874a..a4d9770 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -191,7 +191,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetCo
     if (This->container) {
         container = This->container;
     } else {
-        IWineD3DSurface_GetDevice(iface, (IWineD3DDevice **)&container);
+        container = (IWineD3DBase *)This->resource.wineD3DDevice;
     }
 
     TRACE("Relaying to QueryInterface\n");




More information about the wine-cvs mailing list