Author: pschweitzer
Date: Mon May 2 17:45:42 2016
New Revision: 71235
URL:
http://svn.reactos.org/svn/reactos?rev=71235&view=rev
Log:
[USER32]
Import Wine commit:
- bfb7e167cb399dbba0a889b797bc11ece8b9e687, Check bounds before dereferencing.
Modified:
trunk/reactos/win32ss/user/user32/controls/edit.c
Modified: trunk/reactos/win32ss/user/user32/controls/edit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/edit.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/edit.c [iso-8859-1] Mon May 2 17:45:42
2016
@@ -299,7 +299,7 @@
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;