Aric Stewart : user32: Recalculate string length when cropping string to fit.
Alexandre Julliard
julliard at winehq.org
Wed Oct 19 14:05:25 CDT 2011
Module: wine
Branch: master
Commit: 67196377b5b2fd28e7ef3d8bbb674740ddfe0508
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67196377b5b2fd28e7ef3d8bbb674740ddfe0508
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Oct 19 08:37:25 2011 -0500
user32: Recalculate string length when cropping string to fit.
---
dlls/user32/edit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 039e7c9..dffc72a 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -2489,6 +2489,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
while ((es->text_width > fw) && s + strl >= s) {
strcpyW(es->text + s + strl - 1, es->text + s + strl);
strl--;
+ es->text_length = -1;
EDIT_InvalidateUniscribeData(es);
EDIT_CalcLineWidth_SL(es);
}
More information about the wine-cvs
mailing list