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
6b38139e
Commit
6b38139e
authored
Nov 17, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove a level of indent in resolve_folder().
parent
4052b8be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
43 deletions
+44
-43
helpers.c
dlls/msi/helpers.c
+44
-43
No files found.
dlls/msi/helpers.c
View file @
6b38139e
...
...
@@ -201,7 +201,7 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
BOOL
set_prop
,
MSIFOLDER
**
folder
)
{
MSIFOLDER
*
f
;
LPWSTR
p
,
path
=
NULL
;
LPWSTR
p
,
path
=
NULL
,
parent
;
TRACE
(
"Working to resolve %s
\n
"
,
debugstr_w
(
name
));
...
...
@@ -267,60 +267,61 @@ LPWSTR resolve_folder(MSIPACKAGE *package, LPCWSTR name, BOOL source,
return
path
;
}
if
(
f
->
Parent
)
{
LPWSTR
parent
=
f
->
Parent
->
Directory
;
if
(
!
f
->
Parent
)
return
path
;
TRACE
(
" ! Parent is %s
\n
"
,
debugstr_w
(
parent
))
;
parent
=
f
->
Parent
->
Directory
;
p
=
resolve_folder
(
package
,
parent
,
source
,
set_prop
,
NULL
);
if
(
!
source
)
{
TRACE
(
" TargetDefault = %s
\n
"
,
debugstr_w
(
f
->
TargetDefault
));
TRACE
(
" ! Parent is %s
\n
"
,
debugstr_w
(
parent
));
path
=
build_directory_name
(
3
,
p
,
f
->
TargetDefault
,
NULL
);
clean_spaces_from_path
(
path
);
f
->
ResolvedTarget
=
strdupW
(
path
);
TRACE
(
"target -> %s
\n
"
,
debugstr_w
(
path
));
if
(
set_prop
)
MSI_SetPropertyW
(
package
,
name
,
path
);
}
else
{
/* source may be in a few different places ... check each of them */
path
=
NULL
;
p
=
resolve_folder
(
package
,
parent
,
source
,
set_prop
,
NULL
);
if
(
!
source
)
{
TRACE
(
" TargetDefault = %s
\n
"
,
debugstr_w
(
f
->
TargetDefault
));
/* try the long path directory */
if
(
f
->
SourceLongPath
)
path
=
build_directory_name
(
3
,
p
,
f
->
TargetDefault
,
NULL
);
clean_spaces_from_path
(
path
);
f
->
ResolvedTarget
=
strdupW
(
path
);
TRACE
(
"target -> %s
\n
"
,
debugstr_w
(
path
));
if
(
set_prop
)
MSI_SetPropertyW
(
package
,
name
,
path
);
}
else
{
/* source may be in a few different places ... check each of them */
path
=
NULL
;
/* try the long path directory */
if
(
f
->
SourceLongPath
)
{
path
=
build_directory_name
(
3
,
p
,
f
->
SourceLongPath
,
NULL
);
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
path
))
{
path
=
build_directory_name
(
3
,
p
,
f
->
SourceLongPath
,
NULL
);
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
path
))
{
msi_free
(
path
);
path
=
NULL
;
}
msi_free
(
path
);
path
=
NULL
;
}
}
/* try the short path directory */
if
(
!
path
&&
f
->
SourceShortPath
)
/* try the short path directory */
if
(
!
path
&&
f
->
SourceShortPath
)
{
path
=
build_directory_name
(
3
,
p
,
f
->
SourceShortPath
,
NULL
);
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
path
))
{
path
=
build_directory_name
(
3
,
p
,
f
->
SourceShortPath
,
NULL
);
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
path
))
{
msi_free
(
path
);
path
=
NULL
;
}
msi_free
(
path
);
path
=
NULL
;
}
}
/* try the root of the install */
if
(
!
path
)
path
=
get_source_root
(
package
);
/* try the root of the install */
if
(
!
path
)
path
=
get_source_root
(
package
);
TRACE
(
"source -> %s
\n
"
,
debugstr_w
(
path
));
f
->
ResolvedSource
=
strdupW
(
path
);
}
msi_free
(
p
);
TRACE
(
"source -> %s
\n
"
,
debugstr_w
(
path
));
f
->
ResolvedSource
=
strdupW
(
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