From 93a02e7f652b2b0ac405dc25ea6cc2293fd50bb9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 26 Jun 2008 16:49:09 +0200 Subject: [PATCH] winex11: Don't create a win data structure for HWND_MESSAGE windows. --- dlls/winex11.drv/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 2ab49d81ce8..0b416d9cdff 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -1662,6 +1662,9 @@ struct x11drv_win_data *X11DRV_create_win_data( HWND hwnd ) if (!(parent = GetAncestor( hwnd, GA_PARENT ))) return NULL; /* desktop */ + /* don't create win data for HWND_MESSAGE windows */ + if (parent != GetDesktopWindow() && !GetAncestor( parent, GA_PARENT )) return NULL; + display = thread_init_display(); if (!(data = alloc_win_data( display, hwnd ))) return NULL; -- 2.11.4.GIT