From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- dlls/shell32/shlexec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c index 828c7168a34..f49ed3d0354 100644 --- a/dlls/shell32/shlexec.c +++ b/dlls/shell32/shlexec.c @@ -677,7 +677,13 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpVerb, /* The file was found in lpPath or one of the directories in the system-wide search path */ } else - xlpFile[0] = '\0'; + { + /* Checking for an unix application */ + if(PathFindOnPathW(xlpFile, search_paths)) + lstrcpyW(lpResult, xlpFile); + else + xlpFile[0] = '\0'; + } } attribs = GetFileAttributesW(lpFile); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6285