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
88d51ad1
Commit
88d51ad1
authored
Dec 16, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Dec 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return ERROR_UNKNOWN_COMPONENT if no products exist.
parent
3edd258f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
registry.c
dlls/msi/registry.c
+9
-0
msi.c
dlls/msi/tests/msi.c
+2
-8
No files found.
dlls/msi/registry.c
View file @
88d51ad1
...
...
@@ -1321,6 +1321,15 @@ UINT WINAPI MsiEnumClientsW(LPCWSTR szComponent, DWORD index, LPWSTR szProduct)
MSIREG_OpenLocalSystemComponentKey
(
szComponent
,
&
hkeyComp
,
FALSE
)
!=
ERROR_SUCCESS
)
return
ERROR_UNKNOWN_COMPONENT
;
/* see if there are any products at all */
sz
=
SQUISH_GUID_SIZE
;
r
=
RegEnumValueW
(
hkeyComp
,
0
,
szValName
,
&
sz
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
r
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
hkeyComp
);
return
ERROR_UNKNOWN_COMPONENT
;
}
sz
=
SQUISH_GUID_SIZE
;
r
=
RegEnumValueW
(
hkeyComp
,
index
,
szValName
,
&
sz
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
r
==
ERROR_SUCCESS
)
...
...
dlls/msi/tests/msi.c
View file @
88d51ad1
...
...
@@ -1643,10 +1643,7 @@ static void test_MsiEnumClients(void)
/* user unmanaged component key exists */
product
[
0
]
=
'\0'
;
r
=
MsiEnumClientsA
(
component
,
0
,
product
);
todo_wine
{
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
product
,
""
),
"Expected product to be unchanged, got %s
\n
"
,
product
);
/* index > 0, no products exist */
...
...
@@ -1719,10 +1716,7 @@ static void test_MsiEnumClients(void)
/* user local component key exists */
product
[
0
]
=
'\0'
;
r
=
MsiEnumClientsA
(
component
,
0
,
product
);
todo_wine
{
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_UNKNOWN_COMPONENT
,
"Expected ERROR_UNKNOWN_COMPONENT, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
product
,
""
),
"Expected product to be unchanged, got %s
\n
"
,
product
);
/* index > 0, no products exist */
...
...
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