From 9756d84f6c9812a0dfe85b0ec55dc8fb80e6696c Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 2 May 2016 17:45:42 +0000 Subject: [PATCH] [USER32] Import Wine commit: - bfb7e167cb399dbba0a889b797bc11ece8b9e687, Check bounds before dereferencing. svn path=/trunk/; revision=71235 --- reactos/win32ss/user/user32/controls/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/controls/edit.c b/reactos/win32ss/user/user32/controls/edit.c index 979440fa25e..e96fec9d3ab 100644 --- a/reactos/win32ss/user/user32/controls/edit.c +++ b/reactos/win32ss/user/user32/controls/edit.c @@ -299,7 +299,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;