[PATCH 4/5] wined3d: Clear the device's focus_window field when the window is destroyed.
Henri Verbeet
hverbeet at codeweavers.com
Mon Dec 28 10:38:04 CST 2009
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 67eab83..664f39b 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -7081,6 +7081,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);
--
1.6.4.4
More information about the wine-patches
mailing list