wined3d: Don't use GetDevice in IWineD3DSurfaceImpl_GetContainer, as

it adds a reference to the device that shouldn't be there.
This commit is contained in:
H. Verbeet 2006-02-24 20:40:18 +00:00 committed by Alexandre Julliard
parent d13469c1d8
commit 7d97f29c24
1 changed files with 1 additions and 1 deletions

View File

@ -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");