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
34f6af95
Commit
34f6af95
authored
Jul 02, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return INSTALLSTATE_BADCONFIG if we can't decode the first component.
parent
73e0a874
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
msi.c
dlls/msi/msi.c
+7
-3
msi.c
dlls/msi/tests/msi.c
+1
-4
No files found.
dlls/msi/msi.c
View file @
34f6af95
...
...
@@ -1272,13 +1272,17 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
if
(
!
components
)
return
INSTALLSTATE_ADVERTISED
;
for
(
p
=
components
;
*
p
!=
2
;
p
+=
20
)
for
(
p
=
components
;
*
p
&&
*
p
!=
2
;
p
+=
20
)
{
if
(
!
decode_base85_guid
(
p
,
&
guid
))
{
ERR
(
"%s
\n
"
,
debugstr_w
(
p
));
break
;
if
(
p
!=
components
)
break
;
msi_free
(
components
);
return
INSTALLSTATE_BADCONFIG
;
}
StringFromGUID2
(
&
guid
,
comp
,
GUID_SIZE
);
r
=
MsiGetComponentPathW
(
szProduct
,
comp
,
NULL
,
0
);
TRACE
(
"component %s state %d
\n
"
,
debugstr_guid
(
&
guid
),
r
);
...
...
dlls/msi/tests/msi.c
View file @
34f6af95
...
...
@@ -591,10 +591,7 @@ static void test_MsiQueryFeatureState(void)
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
state
=
MsiQueryFeatureStateA
(
prodcode
,
"feature"
);
todo_wine
{
ok
(
state
==
INSTALLSTATE_BADCONFIG
,
"Expected INSTALLSTATE_BADCONFIG, got %d
\n
"
,
state
);
}
ok
(
state
==
INSTALLSTATE_BADCONFIG
,
"Expected INSTALLSTATE_BADCONFIG, got %d
\n
"
,
state
);
res
=
RegSetValueExA
(
localkey
,
"feature"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"aaaaaaaaaaaaaaaaaaaa"
,
21
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
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