http://bugs.winehq.org/show_bug.cgi?id=17807
--- Comment #5 from Nikolay nick@vyalceva.net 2009-03-28 17:05:11 --- There is an bug that causes an error if the string consists of spaces only. Also, this fix is only for single-line controls. This is more correctly: while((len) && (es->text[len-1]==0x20) && (es->style & ES_READONLY) && !(es->style & ES_MULTILINE)) --len;