(try 6)[3/5] imm32: use thread data from target HWND
Alexandre Julliard
julliard at winehq.org
Tue Oct 8 09:26:00 CDT 2013
Aric Stewart <aric at 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
julliard at winehq.org
More information about the wine-devel
mailing list