Michael Stefaniuc : riched32/tests: Test the correct return value.

Alexandre Julliard julliard at winehq.org
Fri May 3 15:46:17 CDT 2019


Module: wine
Branch: master
Commit: 4b3b27a7f139471d8f479b5702c6a0a8993d8d57
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4b3b27a7f139471d8f479b5702c6a0a8993d8d57

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri May  3 15:19:51 2019 +0200

riched32/tests: Test the correct return value.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched32/tests/editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched32/tests/editor.c b/dlls/riched32/tests/editor.c
index 7394203..0d55b7c 100644
--- a/dlls/riched32/tests/editor.c
+++ b/dlls/riched32/tests/editor.c
@@ -1263,8 +1263,8 @@ static void test_enter(void)
   SendMessageW(hwndRichEdit, WM_CHAR, 'T', 0);
   SendMessageW(hwndRichEdit, WM_CHAR, '\r', 0);
 
-  SendMessageA(hwndRichEdit, EM_GETTEXTEX, (WPARAM)&getText, (LPARAM)buf);
-  ok(result == 1, "Got %d\n", (int)result);
+  result = SendMessageA(hwndRichEdit, EM_GETTEXTEX, (WPARAM)&getText, (LPARAM)buf);
+  ok(result == 3, "Got %ld\n", result);
   format_test_result(resultbuf, buf);
   format_test_result(expectedbuf, "T\r\n");
   result = strcmp(resultbuf, expectedbuf);




More information about the wine-cvs mailing list