Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
25b72282
Commit
25b72282
authored
Mar 30, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Reimplement MsiEnumComponents on top of MsiEnumComponentsEx.
parent
8cebf017
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
registry.c
dlls/msi/registry.c
+6
-16
No files found.
dlls/msi/registry.c
View file @
25b72282
...
...
@@ -1205,7 +1205,9 @@ UINT WINAPI MsiEnumComponentsA(DWORD index, LPSTR lpguid)
DWORD
r
;
WCHAR
szwGuid
[
GUID_SIZE
];
TRACE
(
"%d %p
\n
"
,
index
,
lpguid
);
TRACE
(
"%u, %p
\n
"
,
index
,
lpguid
);
if
(
!
lpguid
)
return
ERROR_INVALID_PARAMETER
;
r
=
MsiEnumComponentsW
(
index
,
szwGuid
);
if
(
r
==
ERROR_SUCCESS
)
...
...
@@ -1216,23 +1218,11 @@ UINT WINAPI MsiEnumComponentsA(DWORD index, LPSTR lpguid)
UINT
WINAPI
MsiEnumComponentsW
(
DWORD
index
,
LPWSTR
lpguid
)
{
HKEY
hkey
;
REGSAM
access
=
KEY_WOW64_64KEY
|
KEY_ALL_ACCESS
;
WCHAR
szKeyName
[
SQUISH_GUID_SIZE
];
DWORD
r
;
TRACE
(
"%d %p
\n
"
,
index
,
lpguid
);
TRACE
(
"%u, %p
\n
"
,
index
,
lpguid
);
r
=
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
szInstaller_Components
,
0
,
NULL
,
0
,
access
,
NULL
,
&
hkey
,
NULL
);
if
(
r
!=
ERROR_SUCCESS
)
return
ERROR_NO_MORE_ITEMS
;
if
(
!
lpguid
)
return
ERROR_INVALID_PARAMETER
;
r
=
RegEnumKeyW
(
hkey
,
index
,
szKeyName
,
SQUISH_GUID_SIZE
);
if
(
r
==
ERROR_SUCCESS
)
unsquash_guid
(
szKeyName
,
lpguid
);
RegCloseKey
(
hkey
);
return
r
;
return
MsiEnumComponentsExW
(
szAllSid
,
MSIINSTALLCONTEXT_ALL
,
index
,
lpguid
,
NULL
,
NULL
,
NULL
);
}
UINT
WINAPI
MsiEnumComponentsExA
(
LPCSTR
user_sid
,
DWORD
ctx
,
DWORD
index
,
CHAR
guid
[
39
],
...
...
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