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
87763442
Commit
87763442
authored
Nov 08, 1998
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 08, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API documentation says that RegEnumKeyEx, RegEnumValue and
RegQueryInfoKey takes the size of the buffers as characters.
parent
44d31a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
registry.c
misc/registry.c
+3
-11
No files found.
misc/registry.c
View file @
87763442
...
...
@@ -2707,14 +2707,14 @@ DWORD WINAPI RegEnumKeyEx32A( HKEY hkey, DWORD iSubkey, LPSTR lpszName,
);
if
(
lpszName
)
{
lpszNameW
=
(
LPWSTR
)
xmalloc
(
*
lpcchName
*
2
);
lpcchNameW
=
*
lpcchName
*
2
;
lpcchNameW
=
*
lpcchName
;
}
else
{
lpszNameW
=
NULL
;
lpcchNameW
=
0
;
}
if
(
lpszClass
)
{
lpszClassW
=
(
LPWSTR
)
xmalloc
(
*
lpcchClass
*
2
);
lpcchClassW
=
*
lpcchClass
*
2
;
lpcchClassW
=
*
lpcchClass
;
}
else
{
lpszClassW
=
0
;
lpcchClassW
=
0
;
...
...
@@ -2860,7 +2860,7 @@ DWORD WINAPI RegEnumValue32A( HKEY hkey, DWORD iValue, LPSTR lpszValue,
lpszValueW
=
(
LPWSTR
)
xmalloc
(
*
lpcchValue
*
2
);
if
(
lpbData
)
{
lpbDataW
=
(
LPBYTE
)
xmalloc
(
*
lpcbData
*
2
);
lpcbDataW
=
*
lpcbData
*
2
;
lpcbDataW
=
*
lpcbData
;
}
else
lpbDataW
=
NULL
;
...
...
@@ -3311,14 +3311,6 @@ DWORD WINAPI RegQueryInfoKey32A( HKEY hkey, LPSTR lpszClass, LPDWORD lpcchClass,
);
if
(
ret
==
ERROR_SUCCESS
&&
lpszClass
)
lstrcpyWtoA
(
lpszClass
,
lpszClassW
);
if
(
lpcchClass
)
*
lpcchClass
/=
2
;
if
(
lpcchMaxSubkey
)
*
lpcchMaxSubkey
/=
2
;
if
(
lpcchMaxClass
)
*
lpcchMaxClass
/=
2
;
if
(
lpcchMaxValueName
)
*
lpcchMaxValueName
/=
2
;
if
(
lpszClassW
)
free
(
lpszClassW
);
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