Alexandre Julliard : winex11: Don' t create a win data structure for HWND_MESSAGE windows.

Alexandre Julliard julliard at winehq.org
Thu Jun 26 14:50:16 CDT 2008


Module: wine
Branch: master
Commit: 93a02e7f652b2b0ac405dc25ea6cc2293fd50bb9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93a02e7f652b2b0ac405dc25ea6cc2293fd50bb9

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jun 26 16:49:09 2008 +0200

winex11: Don't create a win data structure for HWND_MESSAGE windows.

---

 dlls/winex11.drv/window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 2ab49d8..0b416d9 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;
 




More information about the wine-cvs mailing list