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
9af87e2c
Commit
9af87e2c
authored
Jun 01, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Convert RtlWalkHeap structure on input too.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
parent
b49dd456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
memory.c
dlls/kernelbase/memory.c
+16
-1
No files found.
dlls/kernelbase/memory.c
View file @
9af87e2c
...
...
@@ -640,9 +640,24 @@ struct rtl_heap_entry
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
HeapWalk
(
HANDLE
heap
,
PROCESS_HEAP_ENTRY
*
entry
)
{
struct
rtl_heap_entry
rtl_entry
=
{
.
lpData
=
entry
->
lpData
};
struct
rtl_heap_entry
rtl_entry
=
{
0
};
NTSTATUS
status
;
if
(
!
entry
)
return
set_ntstatus
(
STATUS_INVALID_PARAMETER
);
rtl_entry
.
lpData
=
entry
->
lpData
;
rtl_entry
.
cbData
=
entry
->
cbData
;
rtl_entry
.
cbOverhead
=
entry
->
cbOverhead
;
rtl_entry
.
iRegionIndex
=
entry
->
iRegionIndex
;
if
(
entry
->
wFlags
&
PROCESS_HEAP_ENTRY_BUSY
)
rtl_entry
.
wFlags
|=
RTL_HEAP_ENTRY_BUSY
;
if
(
entry
->
wFlags
&
PROCESS_HEAP_REGION
)
rtl_entry
.
wFlags
|=
RTL_HEAP_ENTRY_REGION
;
if
(
entry
->
wFlags
&
PROCESS_HEAP_UNCOMMITTED_RANGE
)
rtl_entry
.
wFlags
|=
RTL_HEAP_ENTRY_UNCOMMITTED
;
memcpy
(
&
rtl_entry
.
Region
,
&
entry
->
u
.
Region
,
sizeof
(
entry
->
u
.
Region
)
);
if
(
!
(
status
=
RtlWalkHeap
(
heap
,
&
rtl_entry
)))
{
entry
->
lpData
=
rtl_entry
.
lpData
;
...
...
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