mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +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:
parent
b9852e83d2
commit
b35becef2e
1 changed files with 3 additions and 0 deletions
|
@ -309,6 +309,9 @@ CreateShortcut(const CStringW &Target)
|
||||||
{
|
{
|
||||||
if (SUCCEEDED(hr = link->SetPath(Target)))
|
if (SUCCEEDED(hr = link->SetPath(Target)))
|
||||||
{
|
{
|
||||||
|
SplitFileAndDirectory(Target, &tmp);
|
||||||
|
link->SetWorkingDirectory(tmp);
|
||||||
|
|
||||||
if (SUCCEEDED(GetCustomIconPath(Info, tmp)))
|
if (SUCCEEDED(GetCustomIconPath(Info, tmp)))
|
||||||
{
|
{
|
||||||
LPWSTR p = tmp.GetBuffer();
|
LPWSTR p = tmp.GetBuffer();
|
||||||
|
|
Loading…
Reference in a new issue