WINED3D: Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer
H. Verbeet
hverbeet at gmail.com
Fri Feb 24 14:40:18 CST 2006
Fix for http://www.winehq.org/pipermail/wine-devel/2006-February/045091.html
Changelog:
- Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer, as it
adds a reference to the device that shouldn't be there.
(QueryInterface already adds one).
-------------- next part --------------
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-patches
mailing list