riched20/tests: Avoid using the comma operator.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-02-28 00:50:30 +01:00 committed by Alexandre Julliard
parent 6f5436f9f4
commit 350123e183
3 changed files with 33 additions and 33 deletions

View File

@ -4970,7 +4970,7 @@ static void test_EM_EXSETSEL(void)
/* Test with multibyte character */ /* Test with multibyte character */
SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"abcdef\x8e\xf0ghijk"); SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"abcdef\x8e\xf0ghijk");
/* 012345 6 78901 */ /* 012345 6 78901 */
cr.cpMin = 4, cr.cpMax = 8; cr.cpMin = 4; cr.cpMax = 8;
result = SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr); result = SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr);
ok(result == 8, "EM_EXSETSEL return %ld expected 8\n", result); ok(result == 8, "EM_EXSETSEL return %ld expected 8\n", result);
result = SendMessageA(hwndRichEdit, EM_GETSELTEXT, sizeof(bufA), (LPARAM)bufA); result = SendMessageA(hwndRichEdit, EM_GETSELTEXT, sizeof(bufA), (LPARAM)bufA);

View File

@ -531,21 +531,21 @@ static void test_GetText(void)
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
/* ITextSelection */ /* ITextSelection */
first = 0, lim = 4; first = 0; lim = 4;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW1), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW1), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = 4, lim = 0; first = 4; lim = 0;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW1), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW1), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = 1, lim = 1; first = 1; lim = 1;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
@ -557,35 +557,35 @@ static void test_GetText(void)
ok(hres == E_INVALIDARG, "ITextSelection_GetText\n"); ok(hres == E_INVALIDARG, "ITextSelection_GetText\n");
} }
first = 8, lim = 12; first = 8; lim = 12;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW3), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW3), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = 8, lim = 13; first = 8; lim = 13;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW2), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW2), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = 12, lim = 13; first = 12; lim = 13;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW5), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW5), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = 0, lim = -1; first = 0; lim = -1;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
ok(!lstrcmpW(bstr, bufW4), "got wrong text: %s\n", wine_dbgstr_w(bstr)); ok(!lstrcmpW(bstr, bufW4), "got wrong text: %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
first = -1, lim = 9; first = -1; lim = 9;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_GetText(txtSel, &bstr); hres = ITextSelection_GetText(txtSel, &bstr);
ok(hres == S_OK, "ITextSelection_GetText\n"); ok(hres == S_OK, "ITextSelection_GetText\n");
@ -757,7 +757,7 @@ static void test_ITextRange_GetChar(void)
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
release_interfaces(&w, &reOle, &txtDoc, NULL); release_interfaces(&w, &reOle, &txtDoc, NULL);
first = 0, lim = 0; first = 0; lim = 0;
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
@ -769,7 +769,7 @@ static void test_ITextRange_GetChar(void)
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
release_interfaces(&w, &reOle, &txtDoc, NULL); release_interfaces(&w, &reOle, &txtDoc, NULL);
first = 12, lim = 12; first = 12; lim = 12;
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
@ -781,7 +781,7 @@ static void test_ITextRange_GetChar(void)
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
release_interfaces(&w, &reOle, &txtDoc, NULL); release_interfaces(&w, &reOle, &txtDoc, NULL);
first = 13, lim = 13; first = 13; lim = 13;
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
@ -795,7 +795,7 @@ static void test_ITextRange_GetChar(void)
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 12, lim = 12; first = 12; lim = 12;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
hres = ITextRange_GetChar(txtRge, NULL); hres = ITextRange_GetChar(txtRge, NULL);
@ -885,28 +885,28 @@ static void test_ITextSelection_GetChar(void)
create_interfaces(&w, &reOle, &txtDoc, &txtSel); create_interfaces(&w, &reOle, &txtDoc, &txtSel);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 0, lim = 4; first = 0; lim = 4;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
pch = 0xdeadbeef; pch = 0xdeadbeef;
hres = ITextSelection_GetChar(txtSel, &pch); hres = ITextSelection_GetChar(txtSel, &pch);
ok(hres == S_OK, "ITextSelection_GetChar\n"); ok(hres == S_OK, "ITextSelection_GetChar\n");
ok(pch == 'T', "got wrong char: %c\n", pch); ok(pch == 'T', "got wrong char: %c\n", pch);
first = 0, lim = 0; first = 0; lim = 0;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
pch = 0xdeadbeef; pch = 0xdeadbeef;
hres = ITextSelection_GetChar(txtSel, &pch); hres = ITextSelection_GetChar(txtSel, &pch);
ok(hres == S_OK, "ITextSelection_GetChar\n"); ok(hres == S_OK, "ITextSelection_GetChar\n");
ok(pch == 'T', "got wrong char: %c\n", pch); ok(pch == 'T', "got wrong char: %c\n", pch);
first = 12, lim = 12; first = 12; lim = 12;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
pch = 0xdeadbeef; pch = 0xdeadbeef;
hres = ITextSelection_GetChar(txtSel, &pch); hres = ITextSelection_GetChar(txtSel, &pch);
ok(hres == S_OK, "ITextSelection_GetChar\n"); ok(hres == S_OK, "ITextSelection_GetChar\n");
ok(pch == '\r', "got wrong char: %c\n", pch); ok(pch == '\r', "got wrong char: %c\n", pch);
first = 13, lim = 13; first = 13; lim = 13;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
pch = 0xdeadbeef; pch = 0xdeadbeef;
hres = ITextSelection_GetChar(txtSel, &pch); hres = ITextSelection_GetChar(txtSel, &pch);
@ -940,7 +940,7 @@ static void test_ITextRange_GetStart_GetEnd(void)
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 1, lim = 6; first = 1; lim = 6;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
start = 0xdeadbeef; start = 0xdeadbeef;
@ -953,7 +953,7 @@ static void test_ITextRange_GetStart_GetEnd(void)
ok(end == 6, "got wrong end value: %d\n", end); ok(end == 6, "got wrong end value: %d\n", end);
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
first = 6, lim = 1; first = 6; lim = 1;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
start = 0xdeadbeef; start = 0xdeadbeef;
@ -966,7 +966,7 @@ static void test_ITextRange_GetStart_GetEnd(void)
ok(end == 6, "got wrong end value: %d\n", end); ok(end == 6, "got wrong end value: %d\n", end);
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
first = -1, lim = 13; first = -1; lim = 13;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
start = 0xdeadbeef; start = 0xdeadbeef;
@ -979,7 +979,7 @@ static void test_ITextRange_GetStart_GetEnd(void)
ok(end == 13, "got wrong end value: %d\n", end); ok(end == 13, "got wrong end value: %d\n", end);
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
first = 13, lim = 13; first = 13; lim = 13;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
start = 0xdeadbeef; start = 0xdeadbeef;
@ -1159,7 +1159,7 @@ static void test_ITextSelection_GetStart_GetEnd(void)
create_interfaces(&w, &reOle, &txtDoc, &txtSel); create_interfaces(&w, &reOle, &txtDoc, &txtSel);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 2, lim = 5; first = 2; lim = 5;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
start = 0xdeadbeef; start = 0xdeadbeef;
hres = ITextSelection_GetStart(txtSel, &start); hres = ITextSelection_GetStart(txtSel, &start);
@ -1170,7 +1170,7 @@ static void test_ITextSelection_GetStart_GetEnd(void)
ok(hres == S_OK, "ITextSelection_GetEnd\n"); ok(hres == S_OK, "ITextSelection_GetEnd\n");
ok(end == 5, "got wrong end value: %d\n", end); ok(end == 5, "got wrong end value: %d\n", end);
first = 5, lim = 2; first = 5; lim = 2;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
start = 0xdeadbeef; start = 0xdeadbeef;
hres = ITextSelection_GetStart(txtSel, &start); hres = ITextSelection_GetStart(txtSel, &start);
@ -1181,7 +1181,7 @@ static void test_ITextSelection_GetStart_GetEnd(void)
ok(hres == S_OK, "ITextSelection_GetEnd\n"); ok(hres == S_OK, "ITextSelection_GetEnd\n");
ok(end == 5, "got wrong end value: %d\n", end); ok(end == 5, "got wrong end value: %d\n", end);
first = 0, lim = -1; first = 0; lim = -1;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
start = 0xdeadbeef; start = 0xdeadbeef;
hres = ITextSelection_GetStart(txtSel, &start); hres = ITextSelection_GetStart(txtSel, &start);
@ -1192,7 +1192,7 @@ static void test_ITextSelection_GetStart_GetEnd(void)
ok(hres == S_OK, "ITextSelection_GetEnd\n"); ok(hres == S_OK, "ITextSelection_GetEnd\n");
ok(end == 13, "got wrong end value: %d\n", end); ok(end == 13, "got wrong end value: %d\n", end);
first = 13, lim = 13; first = 13; lim = 13;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
start = 0xdeadbeef; start = 0xdeadbeef;
hres = ITextSelection_GetStart(txtSel, &start); hres = ITextSelection_GetStart(txtSel, &start);
@ -1365,7 +1365,7 @@ static void test_ITextRange_GetDuplicate(void)
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 0, lim = 4; first = 0; lim = 4;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "ITextDocument_Range fails 0x%x.\n", hres); ok(hres == S_OK, "ITextDocument_Range fails 0x%x.\n", hres);
@ -1408,7 +1408,7 @@ static void test_ITextRange_Collapse(void)
create_interfaces(&w, &reOle, &txtDoc, NULL); create_interfaces(&w, &reOle, &txtDoc, NULL);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 4, lim = 8; first = 4; lim = 8;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
hres = ITextRange_Collapse(txtRge, tomTrue); hres = ITextRange_Collapse(txtRge, tomTrue);
@ -1470,7 +1470,7 @@ static void test_ITextRange_Collapse(void)
ok(end == 4, "got wrong end value: %d\n", end); ok(end == 4, "got wrong end value: %d\n", end);
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
first = 6, lim = 6; first = 6; lim = 6;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
hres = ITextRange_Collapse(txtRge, tomEnd); hres = ITextRange_Collapse(txtRge, tomEnd);
@ -1483,7 +1483,7 @@ static void test_ITextRange_Collapse(void)
ok(end == 6, "got wrong end value: %d\n", end); ok(end == 6, "got wrong end value: %d\n", end);
ITextRange_Release(txtRge); ITextRange_Release(txtRge);
first = 8, lim = 8; first = 8; lim = 8;
hres = ITextDocument_Range(txtDoc, first, lim, &txtRge); hres = ITextDocument_Range(txtDoc, first, lim, &txtRge);
ok(hres == S_OK, "got 0x%08x\n", hres); ok(hres == S_OK, "got 0x%08x\n", hres);
hres = ITextRange_Collapse(txtRge, tomStart); hres = ITextRange_Collapse(txtRge, tomStart);
@ -1519,7 +1519,7 @@ static void test_ITextSelection_Collapse(void)
create_interfaces(&w, &reOle, &txtDoc, &txtSel); create_interfaces(&w, &reOle, &txtDoc, &txtSel);
SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1); SendMessageA(w, WM_SETTEXT, 0, (LPARAM)test_text1);
first = 4, lim = 8; first = 4; lim = 8;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_Collapse(txtSel, tomTrue); hres = ITextSelection_Collapse(txtSel, tomTrue);
ok(hres == S_OK, "ITextSelection_Collapse\n"); ok(hres == S_OK, "ITextSelection_Collapse\n");
@ -1556,7 +1556,7 @@ static void test_ITextSelection_Collapse(void)
ok(start == 4, "got wrong start value: %d\n", start); ok(start == 4, "got wrong start value: %d\n", start);
ok(end == 4, "got wrong end value: %d\n", end); ok(end == 4, "got wrong end value: %d\n", end);
first = 6, lim = 6; first = 6; lim = 6;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_Collapse(txtSel, tomEnd); hres = ITextSelection_Collapse(txtSel, tomEnd);
ok(hres == S_FALSE, "ITextSelection_Collapse\n"); ok(hres == S_FALSE, "ITextSelection_Collapse\n");
@ -1564,7 +1564,7 @@ static void test_ITextSelection_Collapse(void)
ok(start == 6, "got wrong start value: %d\n", start); ok(start == 6, "got wrong start value: %d\n", start);
ok(end == 6, "got wrong end value: %d\n", end); ok(end == 6, "got wrong end value: %d\n", end);
first = 8, lim = 8; first = 8; lim = 8;
SendMessageA(w, EM_SETSEL, first, lim); SendMessageA(w, EM_SETSEL, first, lim);
hres = ITextSelection_Collapse(txtSel, tomStart); hres = ITextSelection_Collapse(txtSel, tomStart);
ok(hres == S_FALSE, "ITextSelection_Collapse\n"); ok(hres == S_FALSE, "ITextSelection_Collapse\n");

View File

@ -1358,7 +1358,7 @@ static void test_EM_EXSETSEL(void)
/* Test with multibyte character */ /* Test with multibyte character */
SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"abcdef\x8e\xf0ghijk"); SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"abcdef\x8e\xf0ghijk");
/* 012345 6 7 8901 */ /* 012345 6 7 8901 */
cr.cpMin = 4, cr.cpMax = 8; cr.cpMin = 4; cr.cpMax = 8;
result = SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr); result = SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr);
todo_wine ok(result == 7, "EM_EXSETSEL return %ld expected 7\n", result); todo_wine ok(result == 7, "EM_EXSETSEL return %ld expected 7\n", result);
result = SendMessageA(hwndRichEdit, EM_GETSELTEXT, sizeof(bufA), (LPARAM)bufA); result = SendMessageA(hwndRichEdit, EM_GETSELTEXT, sizeof(bufA), (LPARAM)bufA);