mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[SHELL32] SHELL_FindExecutable: Fix last regression from PR#7588 (#7643)
Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> Co-authored-by: Stanislav Motylkov <x86corez@gmail.com>
This commit is contained in:
parent
853b8ebd02
commit
690643fc77
1 changed files with 8 additions and 0 deletions
|
@ -794,6 +794,14 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpVerb,
|
|||
TRACE("PathResolveW returned non-zero\n");
|
||||
lpFile = xlpFile;
|
||||
PathRemoveBlanksW(xlpFile);
|
||||
|
||||
/* Clear any trailing periods */
|
||||
SIZE_T i = wcslen(xlpFile);
|
||||
while (i > 0 && xlpFile[i - 1] == '.')
|
||||
{
|
||||
xlpFile[--i] = '\0';
|
||||
}
|
||||
|
||||
lstrcpyW(lpResult, xlpFile);
|
||||
/* The file was found in lpPath or one of the directories in the system-wide search path */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue