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
9fac4849
Commit
9fac4849
authored
Nov 24, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make all source directories at the root of the install.
parent
e6b0dc2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
53 deletions
+37
-53
helpers.c
dlls/msi/helpers.c
+37
-53
No files found.
dlls/msi/helpers.c
View file @
9fac4849
...
...
@@ -221,40 +221,42 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
if
(
!
name
)
return
NULL
;
/* s
pecial resolving for Target and Source root dir
*/
if
(
s
trcmpW
(
name
,
cszTargetDir
)
==
0
||
strcmpW
(
name
,
cszSourceDir
)
==
0
)
/* s
ource directories appear to always be at the root
*/
if
(
s
ource
)
{
if
(
!
source
)
path
=
msi_dup_property
(
package
,
cszSourceDir
);
if
(
!
path
)
{
LPWSTR
check_path
;
check_path
=
msi_dup_property
(
package
,
cszTargetDir
);
if
(
!
check_path
)
path
=
msi_dup_property
(
package
,
cszDatabase
);
if
(
path
)
{
check_path
=
msi_dup_property
(
package
,
cszRootDrive
);
if
(
set_pro
p
)
MSI_SetPropertyW
(
package
,
cszTargetDir
,
check_path
)
;
p
=
strrchrW
(
path
,
'\\'
);
if
(
p
)
*
(
p
+
1
)
=
0
;
}
/* correct misbuilt target dir */
path
=
build_directory_name
(
2
,
check_path
,
NULL
);
if
(
strcmpiW
(
path
,
check_path
)
!=
0
)
MSI_SetPropertyW
(
package
,
cszTargetDir
,
path
);
msi_free
(
check_path
);
}
else
if
(
folder
)
*
folder
=
get_loaded_folder
(
package
,
name
);
return
path
;
}
/* special resolving for Target and Source root dir */
if
(
strcmpW
(
name
,
cszTargetDir
)
==
0
||
strcmpW
(
name
,
cszSourceDir
)
==
0
)
{
LPWSTR
check_path
;
check_path
=
msi_dup_property
(
package
,
cszTargetDir
);
if
(
!
check_path
)
{
path
=
msi_dup_property
(
package
,
cszSourceDir
);
if
(
!
path
)
{
path
=
msi_dup_property
(
package
,
cszDatabase
);
if
(
path
)
{
p
=
strrchrW
(
path
,
'\\'
);
if
(
p
)
*
(
p
+
1
)
=
0
;
}
}
check_path
=
msi_dup_property
(
package
,
cszRootDrive
);
if
(
set_prop
)
MSI_SetPropertyW
(
package
,
cszTargetDir
,
check_path
);
}
/* correct misbuilt target dir */
path
=
build_directory_name
(
2
,
check_path
,
NULL
);
if
(
strcmpiW
(
path
,
check_path
)
!=
0
)
MSI_SetPropertyW
(
package
,
cszTargetDir
,
path
);
msi_free
(
check_path
);
if
(
folder
)
*
folder
=
get_loaded_folder
(
package
,
name
);
return
path
;
...
...
@@ -267,19 +269,13 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
if
(
folder
)
*
folder
=
f
;
if
(
!
source
&&
f
->
ResolvedTarget
)
if
(
f
->
ResolvedTarget
)
{
path
=
strdupW
(
f
->
ResolvedTarget
);
TRACE
(
" already resolved to %s
\n
"
,
debugstr_w
(
path
));
return
path
;
}
else
if
(
source
&&
f
->
ResolvedSource
)
{
path
=
strdupW
(
f
->
ResolvedSource
);
TRACE
(
" (source)already resolved to %s
\n
"
,
debugstr_w
(
path
));
return
path
;
}
else
if
(
!
source
&&
f
->
Property
)
else
if
(
f
->
Property
)
{
path
=
build_directory_name
(
2
,
f
->
Property
,
NULL
);
...
...
@@ -296,25 +292,13 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
TRACE
(
" ! Parent is %s
\n
"
,
debugstr_w
(
parent
));
p
=
resolve_folder
(
package
,
parent
,
source
,
set_prop
,
NULL
);
if
(
!
source
)
{
TRACE
(
" TargetDefault = %s
\n
"
,
debugstr_w
(
f
->
TargetDefault
));
TRACE
(
" TargetDefault = %s
\n
"
,
debugstr_w
(
f
->
TargetDefault
));
path
=
build_directory_name
(
3
,
p
,
f
->
TargetDefault
,
NULL
);
f
->
ResolvedTarget
=
strdupW
(
path
);
TRACE
(
" resolved into %s
\n
"
,
debugstr_w
(
path
));
if
(
set_prop
)
MSI_SetPropertyW
(
package
,
name
,
path
);
}
else
{
if
(
f
->
SourceDefault
&&
f
->
SourceDefault
[
0
]
!=
'.'
)
path
=
build_directory_name
(
3
,
p
,
f
->
SourceDefault
,
NULL
);
else
path
=
strdupW
(
p
);
TRACE
(
" (source)resolved into %s
\n
"
,
debugstr_w
(
path
));
f
->
ResolvedSource
=
strdupW
(
path
);
}
path
=
build_directory_name
(
3
,
p
,
f
->
TargetDefault
,
NULL
);
f
->
ResolvedTarget
=
strdupW
(
path
);
TRACE
(
" resolved into %s
\n
"
,
debugstr_w
(
path
));
if
(
set_prop
)
MSI_SetPropertyW
(
package
,
name
,
path
);
msi_free
(
p
);
}
return
path
;
...
...
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