winex11: Don't try to create the owner window if it belongs to a different thread.

This commit is contained in:
Alexandre Julliard 2010-03-01 17:06:19 +01:00
parent 47016df9b7
commit 9cd1ce2510
1 changed files with 2 additions and 1 deletions

View File

@ -1005,7 +1005,8 @@ static Window get_owner_whole_window( HWND owner )
if (!(data = X11DRV_get_win_data( owner )))
{
if (!(data = X11DRV_create_win_data( owner )))
if (GetWindowThreadProcessId( owner, NULL ) != GetCurrentThreadId() ||
!(data = X11DRV_create_win_data( owner )))
return (Window)GetPropA( owner, whole_window_prop );
}
else if (!data->managed) /* make it managed */