Commit 4133ed17 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

are given and allow creation of the link.
parent 941ed629
......@@ -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));
......
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