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
bbde53fb
Commit
bbde53fb
authored
Oct 19, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RegQueryValueW must return count in bytes for empty string too.
parent
3dcbaaa4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
registry.c
dlls/advapi32/registry.c
+5
-5
No files found.
dlls/advapi32/registry.c
View file @
bbde53fb
...
...
@@ -1252,11 +1252,11 @@ DWORD WINAPI RegQueryValueExA( HKEY hkey, LPCSTR name, LPDWORD reserved, LPDWORD
* Retrieves the data associated with the default or unnamed value of a key.
*
* PARAMS
* h
K
ey [I] Handle to an open key.
*
lpSubKey
[I] Name of the subkey of hKey.
*
lpValue
[O] Receives the string associated with the default value
* h
k
ey [I] Handle to an open key.
*
name
[I] Name of the subkey of hKey.
*
data
[O] Receives the string associated with the default value
* of the key.
*
lpcbValue [I/O] Size of lpValue
.
*
count [I/O] Size of lpValue in bytes
.
*
* RETURNS
* Success: ERROR_SUCCESS
...
...
@@ -1279,7 +1279,7 @@ DWORD WINAPI RegQueryValueW( HKEY hkey, LPCWSTR name, LPWSTR data, LPLONG count
{
/* return empty string if default value not found */
if
(
data
)
*
data
=
0
;
if
(
count
)
*
count
=
1
;
if
(
count
)
*
count
=
sizeof
(
WCHAR
)
;
ret
=
ERROR_SUCCESS
;
}
return
ret
;
...
...
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