mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[RAPPS] Set working directory for zip generated shortcuts (#7674)
Some applications are broken and assume the working directory is the same as the .exe directory (xrick etc).
This commit is contained in:
@@ -309,6 +309,9 @@ CreateShortcut(const CStringW &Target)
|
||||
{
|
||||
if (SUCCEEDED(hr = link->SetPath(Target)))
|
||||
{
|
||||
SplitFileAndDirectory(Target, &tmp);
|
||||
link->SetWorkingDirectory(tmp);
|
||||
|
||||
if (SUCCEEDED(GetCustomIconPath(Info, tmp)))
|
||||
{
|
||||
LPWSTR p = tmp.GetBuffer();
|
||||
|
||||
Reference in New Issue
Block a user