imm32: Fix a meaningless test.

Kusanagi Kouichi slash at ma.neweb.ne.jp
Wed Apr 23 18:32:03 CDT 2008


ImmSetCompositionString generates WM_IME_COMPOSITION. Therefore test always
fails if messages are not flushed.
---
 dlls/imm32/tests/imm32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c
index a5d09ca..226b617 100644
--- a/dlls/imm32/tests/imm32.c
+++ b/dlls/imm32/tests/imm32.c
@@ -191,9 +191,9 @@ static int test_ImmNotifyIME(void) {
        "WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
        "the composition string being canceled is empty.\n");
 
+    ImmSetCompositionString(imc, SCS_SETSTR, string, sizeof(string), NULL, 0);
     msg_spy_flush_msgs();
 
-    ImmSetCompositionString(imc, SCS_SETSTR, string, sizeof(string), NULL, 0);
     ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
     todo_wine
     {
-- 
1.5.5.1




More information about the wine-patches mailing list