Alexandre Julliard : comctl32/tests: Avoid size_t in traces.

Alexandre Julliard julliard at winehq.org
Mon Nov 18 16:19:18 CST 2019


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov 18 22:27:55 2019 +0100

comctl32/tests: Avoid size_t in traces.

---

 dlls/comctl32/tests/treeview.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index eb63439f0b..fac8e8b6b8 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -1695,7 +1695,7 @@ static void test_itemedit(void)
     r = SetWindowTextA(edit, buffA);
     expect(TRUE, r);
     r = GetWindowTextA(edit, buffA, ARRAY_SIZE(buffA));
-    expect(ARRAY_SIZE(buffA) - 1, r);
+    ok( r == ARRAY_SIZE(buffA) - 1, "got %d\n", r );
     /* ...but it's trimmed to MAX_PATH chars when editing ends */
     r = SendMessageA(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit);
     expect(0, r);
@@ -1705,7 +1705,7 @@ static void test_itemedit(void)
     item.cchTextMax = ARRAY_SIZE(buffA);
     r = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item);
     expect(TRUE, r);
-    expect(MAX_PATH - 1, strlen(item.pszText));
+    expect(MAX_PATH - 1, lstrlenA(item.pszText));
 
     /* We can't get around that MAX_PATH limit by increasing EM_SETLIMITTEXT */
     edit = (HWND)SendMessageA(hTree, TVM_EDITLABELA, 0, (LPARAM)hRoot);
@@ -1723,7 +1723,7 @@ static void test_itemedit(void)
     item.cchTextMax = ARRAY_SIZE(buffA);
     r = SendMessageA(hTree, TVM_GETITEMA, 0, (LPARAM)&item);
     expect(TRUE, r);
-    expect(MAX_PATH - 1, strlen(item.pszText));
+    expect(MAX_PATH - 1, lstrlenA(item.pszText));
 
     /* Overwriting of pszText contents in TVN_ENDLABELEDIT */
     edit = (HWND)SendMessageA(hTree, TVM_EDITLABELA, 0, (LPARAM)hRoot);




More information about the wine-cvs mailing list