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.
This commit is contained in:
Henri Verbeet 2009-12-28 17:38:04 +01:00 committed by Alexandre Julliard
parent d992e77b9c
commit d588d2b489
1 changed files with 3 additions and 0 deletions

View File

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