On Tue Apr 4 20:55:46 2023 +0000, Rémi Bernon wrote:
I guess maybe we'd have to clear the `fdwInit` flag before calling `ImeSelect`? As far as I could see in the tests, the `fdwConversion` and `fdwSentence` fields aren't modified by imm32 and left for the IME to reset or not. It caused some spurious failures before 7d03937abe899db810c983779f2566b94d787e8a with the fields keeping the values from the default (MS) IME. The tests also suggest that the values are cached between different IME selections, unlike what Wine is currently doing.
I tested a bit of code, it appears that fdwInit is also cached during IME switching.