winex11: Initialize thread data in clip_cursor_notify.
Sebastian Lackner
sebastian at fds-team.de
Tue Aug 4 11:43:26 CDT 2015
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
More information about the wine-patches
mailing list