Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e973115a
Commit
e973115a
authored
Oct 11, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Properly build the shortcut target path.
parent
cda63b8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
action.c
dlls/msi/action.c
+20
-3
No files found.
dlls/msi/action.c
View file @
e973115a
...
...
@@ -3611,9 +3611,26 @@ static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param)
target
=
MSI_RecordGetString
(
row
,
5
);
if
(
strchrW
(
target
,
'['
))
{
deformat_string
(
package
,
target
,
&
deformated
);
IShellLinkW_SetPath
(
sl
,
deformated
);
msi_free
(
deformated
);
int
len
;
WCHAR
*
format_string
,
*
p
;
if
(
!
(
p
=
strchrW
(
target
,
']'
)))
goto
err
;
len
=
p
-
target
+
1
;
format_string
=
msi_alloc
(
(
len
+
1
)
*
sizeof
(
WCHAR
)
);
memcpy
(
format_string
,
target
,
len
*
sizeof
(
WCHAR
)
);
format_string
[
len
]
=
0
;
deformat_string
(
package
,
format_string
,
&
deformated
);
msi_free
(
format_string
);
path
=
msi_alloc
(
(
strlenW
(
deformated
)
+
strlenW
(
p
+
1
)
+
2
)
*
sizeof
(
WCHAR
)
);
strcpyW
(
path
,
deformated
);
PathAddBackslashW
(
path
);
strcatW
(
path
,
p
+
1
);
TRACE
(
"target path is %s
\n
"
,
debugstr_w
(
path
));
IShellLinkW_SetPath
(
sl
,
path
);
msi_free
(
deformated
);
msi_free
(
path
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment