mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +00:00
[COMDLG32]
Import Wine commit: - d288d8d333f6faea9d64a0af944f125663a449d8, Check for overflow before dereferencing. svn path=/trunk/; revision=71234
This commit is contained in:
parent
1a570d8bbb
commit
be41ea660b
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue