Aric Stewart <a...@codeweavers.com> writes:

> @@ -1597,7 +1612,9 @@ BOOL WINAPI ImmGetConversionStatus(
>  HWND WINAPI ImmGetDefaultIMEWnd(HWND hWnd)
>  {
>      HWND ret;
> -    IMMThreadData* thread_data = IMM_GetThreadData(0);
> +    IMMThreadData* thread_data = IMM_GetThreadDataForWindow(hWnd);
> +    if (!thread_data)
> +        return NULL;
>      if (thread_data->hwndDefault == NULL)
>          thread_data->hwndDefault = CreateWindowExW( WS_EX_TOOLWINDOW,
>                      szwIME, NULL, WS_POPUP, 0, 0, 1, 1, 0, 0, 0, 0);

It doesn't seem right to create the default window from a different
thread.

-- 
Alexandre Julliard
julli...@winehq.org


Reply via email to