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
0dff7bff
Commit
0dff7bff
authored
Jul 24, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix feature actions overriding in process_state_property.
parent
331c86f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
action.c
dlls/msi/action.c
+6
-7
No files found.
dlls/msi/action.c
View file @
0dff7bff
...
...
@@ -1666,6 +1666,8 @@ static BOOL process_state_property(MSIPACKAGE* package, int level,
{
LPWSTR
override
;
MSIFEATURE
*
feature
;
BOOL
remove
=
!
strcmpW
(
property
,
szRemove
);
BOOL
reinstall
=
!
strcmpW
(
property
,
szReinstall
);
override
=
msi_dup_property
(
package
->
db
,
property
);
if
(
!
override
)
...
...
@@ -1676,16 +1678,16 @@ static BOOL process_state_property(MSIPACKAGE* package, int level,
if
(
strcmpW
(
property
,
szRemove
)
&&
!
is_feature_selected
(
feature
,
level
))
continue
;
if
(
!
strcmpW
(
property
,
szReinstall
))
state
=
feature
->
Installed
;
if
(
reinstall
)
state
=
(
feature
->
Installed
==
INSTALLSTATE_ABSENT
?
INSTALLSTATE_UNKNOWN
:
feature
->
Installed
);
else
if
(
remove
)
state
=
(
feature
->
Installed
==
INSTALLSTATE_ABSENT
?
INSTALLSTATE_UNKNOWN
:
INSTALLSTATE_ABSENT
);
if
(
!
strcmpiW
(
override
,
szAll
))
{
if
(
feature
->
Installed
!=
state
)
{
feature
->
Action
=
state
;
feature
->
ActionRequest
=
state
;
}
}
else
{
LPWSTR
ptr
=
override
;
...
...
@@ -1698,11 +1700,8 @@ static BOOL process_state_property(MSIPACKAGE* package, int level,
if
((
ptr2
&&
strlenW
(
feature
->
Feature
)
==
len
&&
!
strncmpW
(
ptr
,
feature
->
Feature
,
len
))
||
(
!
ptr2
&&
!
strcmpW
(
ptr
,
feature
->
Feature
)))
{
if
(
feature
->
Installed
!=
state
)
{
feature
->
Action
=
state
;
feature
->
ActionRequest
=
state
;
}
break
;
}
if
(
ptr2
)
...
...
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