From: Sebastian Lackner Subject: winex11: Initialize thread data in clip_cursor_notify. Message-Id: <55C0EBAE.7010806@fds-team.de> Date: Tue, 4 Aug 2015 18:43:26 +0200 X11DRV_CreateWindow() doesn't initialize the thread data, so we can receive internal window messages before x11drv_init_thread_data() is called. Fixes https://bugs.winehq.org/show_bug.cgi?id=36915 --- dlls/winex11.drv/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 3a11b41..e462b55 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -452,7 +452,7 @@ void reset_clipping_window(void) */ LRESULT clip_cursor_notify( HWND hwnd, HWND new_clip_hwnd ) { - struct x11drv_thread_data *data = x11drv_thread_data(); + struct x11drv_thread_data *data = x11drv_init_thread_data(); if (hwnd == GetDesktopWindow()) /* change the clip window stored in the desktop process */ { -- 2.5.0