Misha Koshelev : shell32: Properly create shell links for commands on
path.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 14 15:30:36 CST 2007
Module: wine
Branch: master
Commit: 67cd59b892776ed0a4d595a3ca4e31d2d1fd9ad4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67cd59b892776ed0a4d595a3ca4e31d2d1fd9ad4
Author: Misha Koshelev <mk144210 at bcm.tmc.edu>
Date: Sat Feb 10 23:08:57 2007 -0600
shell32: Properly create shell links for commands on path.
---
dlls/shell32/shelllink.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 62d015b..25f0753 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2191,8 +2191,9 @@ 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))
- hr = S_FALSE;
+ else if(!PathFileExistsW(buffer) &&
+ !SearchPathW(NULL, pszFile, NULL, MAX_PATH, buffer, NULL))
+ hr = S_FALSE;
This->pPidl = SHSimpleIDListFromPathW(pszFile);
ShellLink_GetVolumeInfo(buffer, &This->volume);
More information about the wine-cvs
mailing list