Commit bfb7e167 authored by Pierre Schweitzer's avatar Pierre Schweitzer Committed by Alexandre Julliard

user32: Check bounds before dereferencing.

parent d288d8d3
......@@ -305,7 +305,7 @@ static INT EDIT_WordBreakProc(EDITSTATE *es, LPWSTR s, INT index, INT count, INT
case WB_RIGHT:
if (!count)
break;
while (s[index] && index < count && !es->logAttr[index].fSoftBreak)
while (index < count && s[index] && !es->logAttr[index].fSoftBreak)
index++;
ret = index;
break;
......
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