In IPersistFile_Save if the exe file is not found, trust the path we

are given and allow creation of the link.
This commit is contained in:
Aric Stewart 2004-08-20 19:28:33 +00:00 committed by Alexandre Julliard
parent 941ed629a3
commit 4133ed17d9
1 changed files with 8 additions and 3 deletions

View File

@ -683,10 +683,15 @@ static HRESULT WINAPI IPersistStream_fnSave(
/* if there's no PIDL, generate one */
if( ! This->pPidl )
{
/*
* windows can create lnk files to executables that do not exist yet
* so if the executable does not exist the just trust the path they
* gave us
*/
if( !*exePath )
return E_FAIL;
This->pPidl = ILCreateFromPathW(exePath);
This->pPidl = ILCreateFromPathW(This->sPath);
else
This->pPidl = ILCreateFromPathW(exePath);
}
memset(&header, 0, sizeof(header));