Author: pschweitzer
Date: Mon May  2 17:45:39 2016
New Revision: 71234
URL: 
http://svn.reactos.org/svn/reactos?rev=71234&view=rev
Log:
[COMDLG32]
Import Wine commit:
- d288d8d333f6faea9d64a0af944f125663a449d8, Check for overflow before dereferencing.
Modified:
    trunk/reactos/dll/win32/comdlg32/filedlg.c
Modified: trunk/reactos/dll/win32/comdlg32/filedlg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comdlg32/filedlg…
==============================================================================
--- trunk/reactos/dll/win32/comdlg32/filedlg.c  [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comdlg32/filedlg.c  [iso-8859-1] Mon May  2 17:45:39 2016
@@ -621,7 +621,7 @@
          if ( lpstrEdit[nStrCharCount]=='"' )
          {
            nStrCharCount++;
-           while ((lpstrEdit[nStrCharCount]!='"') && (nStrCharCount
<= nStrLen))
+           while ((nStrCharCount <= nStrLen) &&
(lpstrEdit[nStrCharCount]!='"'))
            {
              (*lpstrFileList)[nFileIndex++] = lpstrEdit[nStrCharCount];
              nStrCharCount++;