Commit 67cd59b8 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

shell32: Properly create shell links for commands on path.

parent 1b6d127a
......@@ -2191,7 +2191,8 @@ static HRESULT WINAPI IShellLinkW_fnSetPath(IShellLinkW * iface, LPCWSTR pszFile
*buffer = '\0';
else if (!GetFullPathNameW(pszFile, MAX_PATH, buffer, &fname))
return E_FAIL;
else if(!PathFileExistsW(buffer))
else if(!PathFileExistsW(buffer) &&
!SearchPathW(NULL, pszFile, NULL, MAX_PATH, buffer, NULL))
hr = S_FALSE;
This->pPidl = SHSimpleIDListFromPathW(pszFile);
......
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