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
5f453db5
Commit
5f453db5
authored
Jul 06, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix the return value of COM_RegReadPath and make it static.
parent
ef7b6e27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
compobj.c
dlls/ole32/compobj.c
+6
-6
No files found.
dlls/ole32/compobj.c
View file @
5f453db5
...
...
@@ -1540,25 +1540,25 @@ end:
*
* Reads a registry value and expands it when necessary
*/
HRESULT
COM_RegReadPath
(
HKEY
hkeyroot
,
const
WCHAR
*
keyname
,
const
WCHAR
*
valuename
,
WCHAR
*
dst
,
DWORD
dstlen
)
static
DWORD
COM_RegReadPath
(
HKEY
hkeyroot
,
const
WCHAR
*
keyname
,
const
WCHAR
*
valuename
,
WCHAR
*
dst
,
DWORD
dstlen
)
{
HRESULT
hres
;
DWORD
ret
;
HKEY
key
;
DWORD
keytype
;
WCHAR
src
[
MAX_PATH
];
DWORD
dwLength
=
dstlen
*
sizeof
(
WCHAR
);
if
((
hres
=
RegOpenKeyExW
(
hkeyroot
,
keyname
,
0
,
KEY_READ
,
&
key
))
==
ERROR_SUCCESS
)
{
if
(
(
hres
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
&
keytype
,
(
LPBYTE
)
src
,
&
dwLength
))
==
ERROR_SUCCESS
)
{
if
((
ret
=
RegOpenKeyExW
(
hkeyroot
,
keyname
,
0
,
KEY_READ
,
&
key
))
==
ERROR_SUCCESS
)
{
if
(
(
ret
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
&
keytype
,
(
LPBYTE
)
src
,
&
dwLength
))
==
ERROR_SUCCESS
)
{
if
(
keytype
==
REG_EXPAND_SZ
)
{
if
(
dstlen
<=
ExpandEnvironmentStringsW
(
src
,
dst
,
dstlen
))
hres
=
ERROR_MORE_DATA
;
if
(
dstlen
<=
ExpandEnvironmentStringsW
(
src
,
dst
,
dstlen
))
ret
=
ERROR_MORE_DATA
;
}
else
{
lstrcpynW
(
dst
,
src
,
dstlen
);
}
}
RegCloseKey
(
key
);
}
return
hres
;
return
ret
;
}
static
HRESULT
get_inproc_class_object
(
HKEY
hkeydll
,
REFCLSID
rclsid
,
REFIID
riid
,
void
**
ppv
)
...
...
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