[COMDLG32]

Import Wine commit:
- d288d8d333f6faea9d64a0af944f125663a449d8, Check for overflow before dereferencing.

svn path=/trunk/; revision=71234
This commit is contained in:
Pierre Schweitzer 2016-05-02 17:45:39 +00:00
parent 1a570d8bbb
commit be41ea660b

View file

@ -621,7 +621,7 @@ int COMDLG32_SplitFileNames(LPWSTR lpstrEdit, UINT nStrLen, LPWSTR *lpstrFileLis
if ( lpstrEdit[nStrCharCount]=='"' )
{
nStrCharCount++;
while ((lpstrEdit[nStrCharCount]!='"') && (nStrCharCount <= nStrLen))
while ((nStrCharCount <= nStrLen) && (lpstrEdit[nStrCharCount]!='"'))
{
(*lpstrFileList)[nFileIndex++] = lpstrEdit[nStrCharCount];
nStrCharCount++;