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
9375fd9f
Commit
9375fd9f
authored
Oct 27, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove redundant null checks before MSI_EvaluateCondition.
parent
b0499bf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
22 deletions
+13
-22
action.c
dlls/msi/action.c
+13
-22
No files found.
dlls/msi/action.c
View file @
9375fd9f
...
...
@@ -700,12 +700,10 @@ static UINT ACTION_PerformActionSequence(MSIPACKAGE *package, UINT seq, BOOL UI)
/* check conditions */
cond
=
MSI_RecordGetString
(
row
,
2
);
if
(
cond
)
{
/* this is a hack to skip errors in the condition code */
if
(
MSI_EvaluateConditionW
(
package
,
cond
)
==
MSICONDITION_FALSE
)
goto
end
;
}
/* this is a hack to skip errors in the condition code */
if
(
MSI_EvaluateConditionW
(
package
,
cond
)
==
MSICONDITION_FALSE
)
goto
end
;
action
=
MSI_RecordGetString
(
row
,
1
);
if
(
!
action
)
...
...
@@ -743,20 +741,17 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param)
if
(
!
action
)
{
ERR
(
"Error is retrieving action name
\n
"
);
return
ERROR_FUNCTION_FAILED
;
return
ERROR_FUNCTION_FAILED
;
}
/* check conditions */
cond
=
MSI_RecordGetString
(
row
,
2
);
if
(
cond
)
/* this is a hack to skip errors in the condition code */
if
(
MSI_EvaluateConditionW
(
iap
->
package
,
cond
)
==
MSICONDITION_FALSE
)
{
/* this is a hack to skip errors in the condition code */
if
(
MSI_EvaluateConditionW
(
iap
->
package
,
cond
)
==
MSICONDITION_FALSE
)
{
TRACE
(
"Skipping action: %s (condition is false)
\n
"
,
debugstr_w
(
action
));
return
ERROR_SUCCESS
;
}
TRACE
(
"Skipping action: %s (condition is false)
\n
"
,
debugstr_w
(
action
));
return
ERROR_SUCCESS
;
}
if
(
iap
->
UI
)
...
...
@@ -2044,14 +2039,10 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
TRACE
(
"Enabling or Disabling Components
\n
"
);
LIST_FOR_EACH_ENTRY
(
comp
,
&
package
->
components
,
MSICOMPONENT
,
entry
)
{
if
(
comp
->
Condition
)
if
(
MSI_EvaluateConditionW
(
package
,
comp
->
Condition
)
==
MSICONDITION_FALSE
)
{
if
(
MSI_EvaluateConditionW
(
package
,
comp
->
Condition
)
==
MSICONDITION_FALSE
)
{
TRACE
(
"Disabling component %s
\n
"
,
debugstr_w
(
comp
->
Component
));
comp
->
Enabled
=
FALSE
;
}
TRACE
(
"Disabling component %s
\n
"
,
debugstr_w
(
comp
->
Component
));
comp
->
Enabled
=
FALSE
;
}
}
...
...
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