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
cf7cb993
Commit
cf7cb993
authored
May 01, 2022
by
Torge Matthies
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use correct output buffer size in RtlpNtEnumerateSubKey.
Signed-off-by:
Torge Matthies
<
tmatthies@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd5c680a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
reg.c
dlls/ntdll/reg.c
+3
-3
No files found.
dlls/ntdll/reg.c
View file @
cf7cb993
...
...
@@ -91,9 +91,9 @@ NTSTATUS WINAPI RtlpNtEnumerateSubKey( HANDLE handle, UNICODE_STRING *out, ULONG
DWORD
dwLen
,
dwResultLen
;
NTSTATUS
ret
;
if
(
out
->
Length
)
if
(
out
->
Maximum
Length
)
{
dwLen
=
out
->
Length
+
sizeof
(
KEY_BASIC_INFORMATION
);
dwLen
=
out
->
Maximum
Length
+
sizeof
(
KEY_BASIC_INFORMATION
);
info
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
dwLen
);
if
(
!
info
)
return
STATUS_NO_MEMORY
;
...
...
@@ -111,7 +111,7 @@ NTSTATUS WINAPI RtlpNtEnumerateSubKey( HANDLE handle, UNICODE_STRING *out, ULONG
out
->
Length
=
dwResultLen
;
else
if
(
!
ret
)
{
if
(
out
->
Length
<
info
->
NameLength
)
if
(
out
->
Maximum
Length
<
info
->
NameLength
)
{
out
->
Length
=
dwResultLen
;
ret
=
STATUS_BUFFER_OVERFLOW
;
...
...
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