[PATCH] imm32: Automatically initialize COM on window activation.

Nikolay Sivov nsivov at codeweavers.com
Tue Jan 29 01:42:07 CST 2019


On 1/29/19 10:36 AM, Dmitry Timoshkov wrote:

> Nikolay Sivov <nsivov at codeweavers.com> wrote:
>
>> --- a/dlls/imm32/Makefile.in
>> +++ b/dlls/imm32/Makefile.in
>> @@ -1,6 +1,6 @@
>>   MODULE    = imm32.dll
>>   IMPORTLIB = imm32
>> -IMPORTS   = user32 gdi32 advapi32
>> +IMPORTS   = user32 gdi32 advapi32 ole32
> According to dumpbin output imm32 in Windows doesn't import ole32 directly,
> most likely it loads it manually only when really needed. So, it would
> probably be better to either use delay loading, or also load it manually,
> and make sure that ole32 is never loaded for languages that don't need IME.

I doesn't depend on the language, it will work as long as IME is not 
disabled for thread/process.

Why would it better to delay-load? It will be called practically always 
for GUI applications.




More information about the wine-devel mailing list