Set shortcut working directory, see a17a2fe

This commit is contained in:
Tamás Bálint Misius 2021-02-17 22:11:56 +01:00
parent a17a2fe6c7
commit eece15dbb4
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -304,6 +304,7 @@ bool Client::DoInstallation()
if (CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLinkW, (LPVOID *)&shellLink) != S_OK)
goto finalise;
shellLink->SetPath(Platform::WinWiden(currentfilename).c_str());
shellLink->SetWorkingDirectory(Platform::WinWiden(AppDataPath).c_str());
shellLink->SetDescription(L"The Powder Toy");
if (shellLink->QueryInterface(IID_IPersistFile, (LPVOID *)&shellLinkPersist) != S_OK)
goto finalise;