Skip to content
Snippets Groups Projects
Commit de8a6cb3 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

Don't read past end of table in PathFileExistsDefExtW.

parent 411fc5f1
No related branches found
No related tags found
No related merge requests found
......@@ -1078,7 +1078,7 @@ BOOL WINAPI PathFileExistsDefExtW(LPWSTR lpszPath,DWORD dwWhich)
int iLen = lstrlenW(lpszPath);
if (iLen > (MAX_PATH - 5))
return FALSE;
while (dwWhich & 0x1 && iChoose < sizeof(pszExts))
while ( (dwWhich & 0x1) && pszExts[iChoose][0] )
{
lstrcpyW(lpszPath + iLen, pszExts[iChoose]);
if (PathFileExistsW(lpszPath))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment