Commit 94bd422f authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

user32: When building linedefs prev can be less than 0 if the format width is…

user32: When building linedefs prev can be less than 0 if the format width is less than the width of a single character.
parent 65092bbe
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment