Commit 7bdcbfb9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Fix edit box text limit.

parent 124eaa04
...@@ -5879,6 +5879,7 @@ static HWND CreateEditLabelT(LISTVIEW_INFO *infoPtr, LPCWSTR text, BOOL isW) ...@@ -5879,6 +5879,7 @@ static HWND CreateEditLabelT(LISTVIEW_INFO *infoPtr, LPCWSTR text, BOOL isW)
SetWindowLongPtrA(hedit, GWLP_WNDPROC, (DWORD_PTR)EditLblWndProcA) ); SetWindowLongPtrA(hedit, GWLP_WNDPROC, (DWORD_PTR)EditLblWndProcA) );
SendMessageW(hedit, WM_SETFONT, (WPARAM)infoPtr->hFont, FALSE); SendMessageW(hedit, WM_SETFONT, (WPARAM)infoPtr->hFont, FALSE);
SendMessageW(hedit, EM_SETLIMITTEXT, DISP_TEXT_SIZE-1, 0);
return hedit; return hedit;
} }
......
...@@ -350,7 +350,7 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP ...@@ -350,7 +350,7 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
if (edit) if (edit)
{ {
INT len = SendMessageA(edit, EM_GETLIMITTEXT, 0, 0); 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); "text limit %d, expected 259\n", len);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment