Skip to content

Commit b35bece

Browse files
authored
[RAPPS] Set working directory for zip generated shortcuts (reactos#7674)
Some applications are broken and assume the working directory is the same as the .exe directory (xrick etc).
1 parent b9852e8 commit b35bece

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/applications/rapps/geninst.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ CreateShortcut(const CStringW &Target)
309309
{
310310
if (SUCCEEDED(hr = link->SetPath(Target)))
311311
{
312+
SplitFileAndDirectory(Target, &tmp);
313+
link->SetWorkingDirectory(tmp);
314+
312315
if (SUCCEEDED(GetCustomIconPath(Info, tmp)))
313316
{
314317
LPWSTR p = tmp.GetBuffer();

0 commit comments

Comments
 (0)