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
41d2b53c
Commit
41d2b53c
authored
Jan 03, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Always derive the SourceDir property from the database path.
parent
2a8a1452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
31 deletions
+11
-31
action.c
dlls/msi/action.c
+11
-31
No files found.
dlls/msi/action.c
View file @
41d2b53c
...
...
@@ -424,41 +424,21 @@ static BOOL ui_sequence_exists( MSIPACKAGE *package )
UINT
msi_set_sourcedir_props
(
MSIPACKAGE
*
package
,
BOOL
replace
)
{
LPWSTR
source
,
check
;
WCHAR
*
source
,
*
check
,
*
p
,
*
db
;
DWORD
len
;
if
(
msi_get_property_int
(
package
->
db
,
szInstalled
,
0
))
{
HKEY
hkey
;
if
(
!
(
db
=
msi_dup_property
(
package
->
db
,
szOriginalDatabase
)))
return
ERROR_OUTOFMEMORY
;
MSIREG_OpenInstallProps
(
package
->
ProductCode
,
package
->
Context
,
NULL
,
&
hkey
,
FALSE
);
source
=
msi_reg_get_val_str
(
hkey
,
INSTALLPROPERTY_INSTALLSOURCEW
);
RegCloseKey
(
hkey
);
}
else
if
(
!
(
p
=
strrchrW
(
db
,
'\\'
))
&&
!
(
p
=
strrchrW
(
db
,
'/'
)))
{
LPWSTR
p
,
db
;
DWORD
len
;
db
=
msi_dup_property
(
package
->
db
,
szOriginalDatabase
);
if
(
!
db
)
return
ERROR_OUTOFMEMORY
;
p
=
strrchrW
(
db
,
'\\'
);
if
(
!
p
)
{
p
=
strrchrW
(
db
,
'/'
);
if
(
!
p
)
{
msi_free
(
db
);
return
ERROR_SUCCESS
;
}
}
len
=
p
-
db
+
2
;
source
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
);
lstrcpynW
(
source
,
db
,
len
);
msi_free
(
db
);
msi_free
(
db
);
return
ERROR_SUCCESS
;
}
len
=
p
-
db
+
2
;
source
=
msi_alloc
(
len
*
sizeof
(
WCHAR
)
);
lstrcpynW
(
source
,
db
,
len
);
msi_free
(
db
);
check
=
msi_dup_property
(
package
->
db
,
szSourceDir
);
if
(
!
check
||
replace
)
...
...
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