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
74de3e17
Commit
74de3e17
authored
May 20, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make MsiEnumProducts enumerate products, not features.
parent
ea899e1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
registry.c
dlls/msi/registry.c
+17
-4
automation.c
dlls/msi/tests/automation.c
+3
-4
No files found.
dlls/msi/registry.c
View file @
74de3e17
...
...
@@ -107,6 +107,14 @@ static const WCHAR szUserProduct_fmt[] = {
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
static
const
WCHAR
szInstaller_Products
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'e'
,
'r'
,
'\\'
,
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
's'
,
0
};
static
const
WCHAR
szInstaller_Products_fmt
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
...
...
@@ -493,6 +501,11 @@ UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create)
return
rc
;
}
UINT
MSIREG_OpenProducts
(
HKEY
*
key
)
{
return
RegCreateKeyW
(
HKEY_LOCAL_MACHINE
,
szInstaller_Products
,
key
);
}
UINT
MSIREG_OpenProductsKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
)
{
UINT
rc
;
...
...
@@ -680,7 +693,7 @@ UINT WINAPI MsiEnumProductsA(DWORD index, LPSTR lpguid)
UINT
WINAPI
MsiEnumProductsW
(
DWORD
index
,
LPWSTR
lpguid
)
{
HKEY
hkey
Feature
s
=
0
;
HKEY
hkey
Product
s
=
0
;
DWORD
r
;
WCHAR
szKeyName
[
SQUISH_GUID_SIZE
];
...
...
@@ -689,14 +702,14 @@ UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid)
if
(
NULL
==
lpguid
)
return
ERROR_INVALID_PARAMETER
;
r
=
MSIREG_Open
Features
(
&
hkeyFeature
s
);
r
=
MSIREG_Open
Products
(
&
hkeyProduct
s
);
if
(
r
!=
ERROR_SUCCESS
)
return
ERROR_NO_MORE_ITEMS
;
r
=
RegEnumKeyW
(
hkey
Feature
s
,
index
,
szKeyName
,
SQUISH_GUID_SIZE
);
r
=
RegEnumKeyW
(
hkey
Product
s
,
index
,
szKeyName
,
SQUISH_GUID_SIZE
);
if
(
r
==
ERROR_SUCCESS
)
unsquash_guid
(
szKeyName
,
lpguid
);
RegCloseKey
(
hkey
Feature
s
);
RegCloseKey
(
hkey
Product
s
);
return
r
;
}
...
...
dlls/msi/tests/automation.c
View file @
74de3e17
...
...
@@ -1679,10 +1679,9 @@ static void test_Installer_Products(BOOL bProductInstalled)
}
}
if
(
bProductInstalled
)
todo_wine
ok
(
bProductFound
,
"Product expected to be installed but product code was not found
\n
"
);
else
ok
(
!
bProductFound
,
"Product not expected to be installed but product code was found
\n
"
);
ok
(
bProductInstalled
==
bProductFound
,
"Product expected to %s installed but product code was %s
\n
"
,
bProductInstalled
?
"be"
:
"not be"
,
bProductFound
?
"found"
:
"not found"
);
if
(
pEnum
)
{
...
...
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