Module: wine Branch: master Commit: d588d2b489e5cf3ac65cfc8f3d36917d14f61d95 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d588d2b489e5cf3ac65cfc8f3d...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Dec 28 17:38:04 2009 +0100
wined3d: Clear the device's focus_window field when the window is destroyed.
This will prevent the device from trying to unregister the window again on release.
---
dlls/wined3d/device.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index e4355df..8240f55 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -7069,6 +7069,9 @@ LRESULT device_process_message(IWineD3DDeviceImpl *device, HWND window, { TRACE("unregister window %p.\n", window); wined3d_unregister_window(window); + + if (device->focus_window == window) device->focus_window = NULL; + else ERR("Window %p is not the focus window for device %p.\n", window, device); }
return CallWindowProcW(proc, window, message, wparam, lparam);