Skip to content
Snippets Groups Projects
Commit 7d97f29c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

wined3d: Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer, as

it adds a reference to the device that shouldn't be there.
parent d13469c1
Branches
Tags
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment