mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SHELL32] ShellExecCmdLine: Use SearchPathW (#7166)
Based on @Doug-Lyons
shlexec-winR-fonts.patch.
#4932 (f691efe) introduced
some regression.
JIRA issue: CORE-19688
Call SearchPathW function before
PathFindOnPathExW call in
ShellExecCmdLine function.
This commit is contained in:
@@ -2714,9 +2714,10 @@ HRESULT WINAPI ShellExecCmdLine(
|
||||
SetCurrentDirectoryW(pwszStartDir);
|
||||
}
|
||||
|
||||
if (PathIsRelativeW(szFile) &&
|
||||
GetFullPathNameW(szFile, _countof(szFile2), szFile2, NULL) &&
|
||||
PathFileExistsW(szFile2))
|
||||
if ((PathIsRelativeW(szFile) &&
|
||||
GetFullPathNameW(szFile, _countof(szFile2), szFile2, NULL) &&
|
||||
PathFileExistsW(szFile2)) ||
|
||||
SearchPathW(NULL, szFile, NULL, _countof(szFile2), szFile2, NULL))
|
||||
{
|
||||
StringCchCopyW(szFile, _countof(szFile), szFile2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user