Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
39b7e6e5
Commit
39b7e6e5
authored
Dec 01, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Resolve the target folder if necessary in msi_get_target_folder.
parent
959ebdb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
action.c
dlls/msi/action.c
+2
-8
install.c
dlls/msi/install.c
+12
-2
No files found.
dlls/msi/action.c
View file @
39b7e6e5
...
...
@@ -3517,14 +3517,8 @@ static WCHAR *get_link_file( MSIPACKAGE *package, MSIRECORD *row )
link_folder
=
msi_get_target_folder
(
package
,
directory
);
if
(
!
link_folder
)
{
/* some installers use a separate root */
MSIFOLDER
*
folder
=
msi_get_loaded_folder
(
package
,
directory
);
while
(
folder
->
Parent
&&
strcmpW
(
folder
->
Parent
,
folder
->
Directory
))
{
folder
=
msi_get_loaded_folder
(
package
,
folder
->
Parent
);
}
msi_resolve_target_folder
(
package
,
folder
->
Directory
,
TRUE
);
link_folder
=
msi_get_target_folder
(
package
,
directory
);
ERR
(
"unable to resolve folder %s
\n
"
,
debugstr_w
(
directory
));
return
NULL
;
}
/* may be needed because of a bug somewhere else */
msi_create_full_path
(
link_folder
);
...
...
dlls/msi/install.c
View file @
39b7e6e5
...
...
@@ -213,8 +213,18 @@ UINT msi_strcpy_to_awstring( LPCWSTR str, awstring *awbuf, DWORD *sz )
const
WCHAR
*
msi_get_target_folder
(
MSIPACKAGE
*
package
,
const
WCHAR
*
name
)
{
MSIFOLDER
*
folder
=
msi_get_loaded_folder
(
package
,
name
);
if
(
folder
)
return
folder
->
ResolvedTarget
;
return
NULL
;
if
(
!
folder
)
return
NULL
;
if
(
!
folder
->
ResolvedTarget
)
{
MSIFOLDER
*
parent
=
folder
;
while
(
parent
->
Parent
&&
strcmpW
(
parent
->
Parent
,
parent
->
Directory
))
{
parent
=
msi_get_loaded_folder
(
package
,
parent
->
Parent
);
}
msi_resolve_target_folder
(
package
,
parent
->
Directory
,
TRUE
);
}
return
folder
->
ResolvedTarget
;
}
/***********************************************************************
...
...
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