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
869495ef
Commit
869495ef
authored
Jul 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use msi_reg_get_val_str() to read a registry value.
parent
db1baf73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
msi.c
dlls/msi/msi.c
+2
-14
No files found.
dlls/msi/msi.c
View file @
869495ef
...
...
@@ -1572,22 +1572,11 @@ UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR szComponent,
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_INDEX_ABSENT
;
sz
=
0
;
rc
=
RegQueryValueExW
(
hkey
,
szQualifier
,
NULL
,
NULL
,
NULL
,
&
sz
);
if
(
sz
<=
0
)
{
info
=
msi_reg_get_val_str
(
hkey
,
szQualifier
);
RegCloseKey
(
hkey
);
return
ERROR_INDEX_ABSENT
;
}
info
=
msi_alloc
(
sz
);
rc
=
RegQueryValueExW
(
hkey
,
szQualifier
,
NULL
,
NULL
,
(
LPBYTE
)
info
,
&
sz
);
if
(
rc
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
hkey
);
msi_free
(
info
);
if
(
!
info
)
return
ERROR_INDEX_ABSENT
;
}
MsiDecomposeDescriptorW
(
info
,
product
,
feature
,
component
,
&
sz
);
...
...
@@ -1596,7 +1585,6 @@ UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR szComponent,
else
rc
=
MsiGetComponentPathW
(
szProduct
,
component
,
lpPathBuf
,
pcchPathBuf
);
RegCloseKey
(
hkey
);
msi_free
(
info
);
if
(
rc
==
INSTALLSTATE_LOCAL
)
...
...
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