Commit b4018e7a authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Fix edit control's WM_GETTEXT behaviour.

parent a7adda82
......@@ -3157,13 +3157,8 @@ static LRESULT EDIT_WM_EraseBkGnd(WND *wnd, EDITSTATE *es, HDC dc)
*/
static INT EDIT_WM_GetText(WND *wnd, EDITSTATE *es, INT count, LPSTR text)
{
INT len = lstrlenA(es->text);
if (count > len) {
lstrcpyA(text, es->text);
return len;
} else
return -1;
lstrcpynA(text, es->text, count);
return strlen(text);
}
......
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