winedbg: Fix the path traversal.

This commit is contained in:
Eric Pouech 2008-05-12 21:39:53 +02:00 committed by Alexandre Julliard
parent 140c0423f5
commit 2a771d294f
1 changed files with 2 additions and 3 deletions

View File

@ -127,9 +127,8 @@ static BOOL source_locate_file(const char* srcfile, char* path)
spath = srcfile;
while (!found)
{
spath = strchr(spath, '\\');
if (!spath) spath = strchr(spath, '/');
if (!spath) break;
while (*spath && *spath != '/' && *spath != '\\') spath++;
if (!*spath) break;
spath++;
found = SearchPathA(dbg_curr_process->search_path, spath, NULL, MAX_PATH, path, NULL);
}