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
bc673bff
Commit
bc673bff
authored
Jul 24, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make MsiConfigureFeature a bit more robust.
parent
0bfb9c3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
msi.c
dlls/msi/msi.c
+15
-4
msi.c
dlls/msi/tests/msi.c
+12
-0
No files found.
dlls/msi/msi.c
View file @
bc673bff
...
...
@@ -1715,6 +1715,21 @@ UINT WINAPI MsiConfigureFeatureW(LPCWSTR szProduct, LPCWSTR szFeature, INSTALLST
if
(
!
szProduct
||
!
szFeature
)
return
ERROR_INVALID_PARAMETER
;
switch
(
eInstallState
)
{
case
INSTALLSTATE_DEFAULT
:
/* FIXME: how do we figure out the default location? */
eInstallState
=
INSTALLSTATE_LOCAL
;
break
;
case
INSTALLSTATE_LOCAL
:
case
INSTALLSTATE_SOURCE
:
case
INSTALLSTATE_ABSENT
:
case
INSTALLSTATE_ADVERTISED
:
break
;
default:
return
ERROR_INVALID_PARAMETER
;
}
r
=
MSI_OpenProductW
(
szProduct
,
&
package
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
...
...
@@ -1731,10 +1746,6 @@ UINT WINAPI MsiConfigureFeatureW(LPCWSTR szProduct, LPCWSTR szFeature, INSTALLST
MsiSetInternalUI
(
INSTALLUILEVEL_BASIC
,
NULL
);
/* FIXME: how do we figure out the default location? */
if
(
eInstallState
==
INSTALLSTATE_DEFAULT
)
eInstallState
=
INSTALLSTATE_LOCAL
;
r
=
ACTION_PerformUIAction
(
package
,
szCostInit
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
...
...
dlls/msi/tests/msi.c
View file @
bc673bff
...
...
@@ -90,6 +90,18 @@ static void test_null(void)
r
=
MsiEnumFeaturesW
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error
\n
"
);
r
=
MsiConfigureFeatureW
(
NULL
,
NULL
,
0
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error
\n
"
);
r
=
MsiConfigureFeatureA
(
"{00000000-0000-0000-0000-000000000000}"
,
NULL
,
0
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error
\n
"
);
r
=
MsiConfigureFeatureA
(
"{00000000-0000-0000-0000-000000000000}"
,
"foo"
,
0
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong error %d
\n
"
,
r
);
r
=
MsiConfigureFeatureA
(
"{00000000-0000-0000-0000-000000000000}"
,
"foo"
,
INSTALLSTATE_DEFAULT
);
ok
(
r
==
ERROR_UNKNOWN_PRODUCT
,
"wrong error %d
\n
"
,
r
);
}
static
void
test_getcomponentpath
(
void
)
...
...
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