Nikolay Sivov : comctl32/listview: Fix edit box text limit.
Alexandre Julliard
julliard at winehq.org
Mon Mar 28 14:22:01 CDT 2011
Module: wine
Branch: master
Commit: 7bdcbfb9a0e5662018b9c2f091841b80d5b3825c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bdcbfb9a0e5662018b9c2f091841b80d5b3825c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Mar 27 00:32:27 2011 +0300
comctl32/listview: Fix edit box text limit.
---
dlls/comctl32/listview.c | 1 +
dlls/comctl32/tests/listview.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 754d817..1f64cbe 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -5879,6 +5879,7 @@ static HWND CreateEditLabelT(LISTVIEW_INFO *infoPtr, LPCWSTR text, BOOL isW)
SetWindowLongPtrA(hedit, GWLP_WNDPROC, (DWORD_PTR)EditLblWndProcA) );
SendMessageW(hedit, WM_SETFONT, (WPARAM)infoPtr->hFont, FALSE);
+ SendMessageW(hedit, EM_SETLIMITTEXT, DISP_TEXT_SIZE-1, 0);
return hedit;
}
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index a7de6e7..c2bf70b 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -350,7 +350,7 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
if (edit)
{
INT len = SendMessageA(edit, EM_GETLIMITTEXT, 0, 0);
- todo_wine ok(len == 259 || broken(len == 260) /* includes NULL in NT4 */,
+ ok(len == 259 || broken(len == 260) /* includes NULL in NT4 */,
"text limit %d, expected 259\n", len);
}
More information about the wine-cvs
mailing list