(resend)[3/4] imm32: use thread data from target HWND
Alexandre Julliard
julliard at winehq.org
Fri Sep 20 04:24:09 CDT 2013
Aric Stewart <aric at codeweavers.com> writes:
> @@ -507,7 +524,7 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
> LeaveCriticalSection(&threaddata_cs);
> defaultContext = ImmCreateContext();
> ((InputContextData*)defaultContext)->threadDefault = TRUE;
> - thread_data = IMM_GetThreadData(0);
> + thread_data = IMM_GetThreadDataForWindow(hWnd);
> thread_data->defaultContext = defaultContext;
> }
You have multiple race conditions here.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list