http://bugs.winehq.org/show_bug.cgi?id=17807
--- Comment #4 from Nikolay nick@vyalceva.net 2009-03-28 16:07:10 --- My fix that cuts off extra blanks if the control is in readonly mode:
From af2e4b71f5b83e7385eede4a559e704fedcd8893 Mon Sep 17 00:00:00 2001
From: Nikolay nick@vyalceva.net Date: Sat, 28 Mar 2009 23:49:12 +0300 Subject: This patch fixes an error in EWB 5.12 (# 17807).
--- dlls/user32/edit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) mode change 100644 => 100755 dlls/user32/edit.c
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c old mode 100644 new mode 100755 index eadcc3d..279a2f9 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -1001,7 +1001,7 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap) HFONT old_font = 0; SIZE size; LINEDEF *line_def; - + while((es->text[len-1]==0x20) && (es->style & ES_READONLY)) --len; index = min(index, len); dc = GetDC(es->hwndSelf); if (es->font)