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
6518f3d7
Commit
6518f3d7
authored
Sep 15, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: INSTALLSTATE_SOURCE also overrides a parent feature state change to INSTALLSTATE_ABSENT.
parent
a4c6ca2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
helpers.c
dlls/msi/helpers.c
+9
-8
package.c
dlls/msi/tests/package.c
+4
-4
No files found.
dlls/msi/helpers.c
View file @
6518f3d7
...
@@ -869,20 +869,21 @@ void ACTION_UpdateComponentStates(MSIPACKAGE *package, LPCWSTR szFeature)
...
@@ -869,20 +869,21 @@ void ACTION_UpdateComponentStates(MSIPACKAGE *package, LPCWSTR szFeature)
/*if any other feature wants is local we need to set it local*/
/*if any other feature wants is local we need to set it local*/
LIST_FOR_EACH_ENTRY
(
f
,
&
package
->
features
,
MSIFEATURE
,
entry
)
LIST_FOR_EACH_ENTRY
(
f
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
{
if
(
component
->
ActionRequest
!=
INSTALLSTATE_LOCAL
)
if
(
f
->
ActionRequest
!=
INSTALLSTATE_LOCAL
&&
f
->
ActionRequest
!=
INSTALLSTATE_SOURCE
)
{
break
;
break
;
}
LIST_FOR_EACH_ENTRY
(
clist
,
&
f
->
Components
,
ComponentList
,
entry
)
LIST_FOR_EACH_ENTRY
(
clist
,
&
f
->
Components
,
ComponentList
,
entry
)
{
{
if
(
clist
->
component
==
component
)
if
(
clist
->
component
==
component
&&
{
(
f
->
ActionRequest
==
INSTALLSTATE_LOCAL
||
if
(
f
->
ActionRequest
==
INSTALLSTATE_LOCAL
)
f
->
ActionRequest
==
INSTALLSTATE_SOURCE
)
)
{
{
TRACE
(
"Saved by %s
\n
"
,
debugstr_w
(
f
->
Feature
));
TRACE
(
"Saved by %s
\n
"
,
debugstr_w
(
f
->
Feature
));
component
->
ActionRequest
=
INSTALLSTATE_LOCAL
;
component
->
ActionRequest
=
f
->
ActionRequest
;
component
->
Action
=
INSTALLSTATE_LOCAL
;
component
->
Action
=
f
->
ActionRequest
;
}
break
;
}
}
}
}
}
}
...
...
dlls/msi/tests/package.c
View file @
6518f3d7
...
@@ -2638,8 +2638,8 @@ static void test_featureparents(void)
...
@@ -2638,8 +2638,8 @@ static void test_featureparents(void)
todo_wine
todo_wine
{
{
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
}
}
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
...
@@ -2658,8 +2658,8 @@ static void test_featureparents(void)
...
@@ -2658,8 +2658,8 @@ static void test_featureparents(void)
todo_wine
todo_wine
{
{
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
}
}
ok
(
action
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_LOCAL, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
...
@@ -2678,8 +2678,8 @@ static void test_featureparents(void)
...
@@ -2678,8 +2678,8 @@ static void test_featureparents(void)
todo_wine
todo_wine
{
{
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
action
);
}
}
ok
(
action
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
...
@@ -2688,8 +2688,8 @@ static void test_featureparents(void)
...
@@ -2688,8 +2688,8 @@ static void test_featureparents(void)
todo_wine
todo_wine
{
{
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_UNKNOWN
,
"Expected INSTALLSTATE_UNKNOWN, got %d
\n
"
,
state
);
ok
(
action
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
action
);
}
}
ok
(
action
==
INSTALLSTATE_SOURCE
,
"Expected INSTALLSTATE_SOURCE, got %d
\n
"
,
action
);
state
=
0xdeadbee
;
state
=
0xdeadbee
;
action
=
0xdeadbee
;
action
=
0xdeadbee
;
...
...
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