Commit 2a771d29 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Fix the path traversal.

parent 140c0423
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment