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
d9a06b23
Commit
d9a06b23
authored
Jan 11, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: RegGetValueW() must return the required buffer size in bytes, not WCHARs.
parent
c47c6483
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
registry.c
dlls/advapi32/registry.c
+1
-1
No files found.
dlls/advapi32/registry.c
View file @
d9a06b23
...
@@ -1504,7 +1504,7 @@ LSTATUS WINAPI RegGetValueW( HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue,
...
@@ -1504,7 +1504,7 @@ LSTATUS WINAPI RegGetValueW( HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue,
if
(
dwType
==
REG_EXPAND_SZ
)
if
(
dwType
==
REG_EXPAND_SZ
)
{
{
cbData
=
ExpandEnvironmentStringsW
(
pvBuf
,
pvData
,
cbData
=
ExpandEnvironmentStringsW
(
pvBuf
,
pvData
,
pcbData
?
*
pcbData
:
0
);
pcbData
?
*
pcbData
:
0
)
*
sizeof
(
WCHAR
)
;
dwType
=
REG_SZ
;
dwType
=
REG_SZ
;
if
(
pvData
&&
pcbData
&&
cbData
>
*
pcbData
)
if
(
pvData
&&
pcbData
&&
cbData
>
*
pcbData
)
ret
=
ERROR_MORE_DATA
;
ret
=
ERROR_MORE_DATA
;
...
...
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