Commit 0911d462 authored by Liam Middlebrook's avatar Liam Middlebrook Committed by Alexandre Julliard

cmd: Fix empty strings between PATH separators.

Previously if an empty string was encountered while parsing out PATH, cmd.exe would ignore the rest of the PATH entirely. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55097Signed-off-by: 's avatarLiam Middlebrook <lmiddlebrook@nvidia.com>
parent 9aee47f7
......@@ -1135,6 +1135,12 @@ void WCMD_run_program (WCHAR *command, BOOL called)
else
lstrcpyW(temp, thisDir + 1);
/* When temp is an empty string, skip over it. This needs
to be done before the expansion, because WCMD_get_fullpath
fails when given an empty string */
if (*temp == '\0')
continue;
/* Since you can have eg. ..\.. on the path, need to expand
to full information */
if (!WCMD_get_fullpath(temp, ARRAY_SIZE(thisDir), thisDir, NULL)) return;
......
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