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
5e2bc5b3
Commit
5e2bc5b3
authored
Feb 27, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: If a feature's action is INSTALLSTATE_UNKNOWN, MsiEvaluateCondition should…
msi: If a feature's action is INSTALLSTATE_UNKNOWN, MsiEvaluateCondition should return MSICONDITION_FALSE.
parent
eb836b71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
cond.y
dlls/msi/cond.y
+5
-1
package.c
dlls/msi/tests/package.c
+7
-0
No files found.
dlls/msi/cond.y
View file @
5e2bc5b3
...
...
@@ -317,7 +317,11 @@ value_i:
INSTALLSTATE
install
=
INSTALLSTATE_UNKNOWN
,
action
=
INSTALLSTATE_UNKNOWN
;
MSI_GetFeatureStateW
(
cond
->
package
,
$
2
,
&
install
,
&
action
);
$$
=
action
;
if
(
action
==
INSTALLSTATE_UNKNOWN
)
$$
=
MSICONDITION_FALSE
;
else
$$
=
action
;
msi_free
(
$
2
);
}
|
COND_EXCLAM
identifier
...
...
dlls/msi/tests/package.c
View file @
5e2bc5b3
...
...
@@ -986,6 +986,9 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"0"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"-1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 = 0"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
...
...
@@ -1622,6 +1625,10 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"X !=
\"\"
and (X =
\"
5.0
\"
or X =
\"
5.1
\"
or X =
\"
6.0
\"
)"
);
ok
(
r
==
MSICONDITION_ERROR
,
"wrong return val (%d)
\n
"
,
r
);
/* feature doesn't exist */
r
=
MsiEvaluateCondition
(
hpkg
,
"&nofeature"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val (%d)
\n
"
,
r
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
...
...
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