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

This commit is contained in:
Alexandre Julliard 2008-06-26 16:49:09 +02:00
parent e7044cb8f8
commit 93a02e7f65
1 changed files with 3 additions and 0 deletions

View File

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