From eece15dbb469e4ef26750e5ef41f4f5e6d548a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Wed, 17 Feb 2021 22:11:56 +0100 Subject: [PATCH] Set shortcut working directory, see a17a2fe --- src/client/Client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index dcc243951..bfb2002a3 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -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;