Aric Stewart : user32: When building linedefs prev can be less than 0 if the format width is less than the width of a single character .

Alexandre Julliard julliard at winehq.org
Tue Oct 25 13:50:29 CDT 2011


Module: wine
Branch: master
Commit: 94bd422f8918306203a7b4beaa45cb68ca71dffd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=94bd422f8918306203a7b4beaa45cb68ca71dffd

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue Oct 25 08:30:52 2011 -0500

user32: When building linedefs prev can be less than 0 if the format width is less than the width of a single character.

---

 dlls/user32/edit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index e0e0bba..f8cf757 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -638,7 +638,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
 					current_line->width -= piDx[prev];
 					prev--;
 				} while ( prev > 0 && current_line->width > fw);
-				if (prev==0)
+				if (prev<=0)
 					prev = 1;
 				HeapFree(GetProcessHeap(),0,piDx);
 			}




More information about the wine-cvs mailing list