riched20/tests: use SendMessageA with char buffer(valgrind)

marc.bessieres at mykolab.com marc.bessieres at mykolab.com
Mon Nov 24 14:19:49 CST 2014


From: Marc Bessières <marc.bessieres at mykolab.com>

fixes: https://bugs.winehq.org/show_bug.cgi?id=37159

it is a copy paste from dafd6fecd1dc5cd07e8bcbcbd2acff3798406eb9
where both test_EM_FINDWORDBREAK_W and test_EM_FINDWORDBREAK_A were
introduced.
---
 dlls/riched20/tests/editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 244f065..101aec0 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -7379,7 +7379,7 @@ static void test_EM_FINDWORDBREAK_A(void)
         char buf[2];
         buf[0] = delimiter_tests[i].c;
         buf[1] = 0;
-        SendMessageW(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)buf);
+        SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)buf);
         result = SendMessageA(hwndRichEdit, EM_FINDWORDBREAK, WB_ISDELIMITER, 0);
         if (buf[0] == 0x20)
             todo_wine
-- 
2.1.2




More information about the wine-patches mailing list