Skip to content
Snippets Groups Projects
Commit b4018e7a authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

Fix edit control's WM_GETTEXT behaviour.

parent a7adda82
No related branches found
Tags wine-961102
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment