mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
richedit: Prevent integer overflow in wrapping code with no wrap.
This commit is contained in:
parent
f3c071660d
commit
b5e9aed268
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
|
|||
}
|
||||
|
||||
/* will current run fit? */
|
||||
if (wc->pt.x + run->nWidth > wc->context->pt.x + wc->nAvailWidth)
|
||||
if (wc->pt.x + run->nWidth - wc->context->pt.x > wc->nAvailWidth)
|
||||
{
|
||||
int loc = wc->context->pt.x + wc->nAvailWidth - wc->pt.x;
|
||||
/* total white run ? */
|
||||
|
|
Loading…
Reference in a new issue