Commit 7d97f29c authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer, as

it adds a reference to the device that shouldn't be there.
parent d13469c1
......@@ -191,7 +191,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetContainer(IWineD3DSurface* iface, REFIID r
if (This->container) {
container = This->container;
} else {
IWineD3DSurface_GetDevice(iface, (IWineD3DDevice **)&container);
container = (IWineD3DBase *)This->resource.wineD3DDevice;
}
TRACE("Relaying to QueryInterface\n");
......
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