richedit: Prevent sending Ctrl-C to console and ending tests.

Dylan Smith dylan.ah.smith at gmail.com
Fri Jan 16 19:38:46 CST 2009


It seems as SetFocus is being called on a window with that is no longer
initialized with the WS_VISIBLE style. This is causing the console to
get focus instead, then a later test ends up sending Ctrl-C to to the
console.

This patch add the WS_VISIBLE flag back to the window that SetFocus is
on the prevent this problem.
---
 dlls/riched20/tests/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index ff5d598..a180104 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -1471,7 +1471,7 @@ static void test_EM_SETOPTIONS(void)
     DestroyWindow(hwndRichEdit);
 
     hwndRichEdit = CreateWindow(RICHEDIT_CLASS, NULL,
-                                WS_POPUP|WS_HSCROLL|WS_VSCROLL,
+                                WS_POPUP|WS_HSCROLL|WS_VSCROLL|WS_VISIBLE,
                                 0, 0, 200, 60, NULL, NULL,
                                 hmoduleRichEdit, NULL);
     ok(hwndRichEdit != NULL, "class: %s, error: %d\n",


More information about the wine-patches mailing list