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
5b4cfac3
Commit
5b4cfac3
authored
Apr 11, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Take size of the arena from the current pointer before advancing.
parent
53c05cb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
heap.c
dlls/ntdll/heap.c
+12
-0
No files found.
dlls/ntdll/heap.c
View file @
5b4cfac3
...
...
@@ -1613,7 +1613,19 @@ NTSTATUS WINAPI RtlWalkHeap( HANDLE heap, PVOID entry_ptr )
goto
HW_end
;
}
if
(((
ARENA_INUSE
*
)
ptr
-
1
)
->
magic
==
ARENA_INUSE_MAGIC
)
{
ARENA_INUSE
*
pArena
=
(
ARENA_INUSE
*
)
ptr
-
1
;
ptr
+=
pArena
->
size
&
ARENA_SIZE_MASK
;
}
else
if
(((
ARENA_FREE
*
)
ptr
-
1
)
->
magic
==
ARENA_FREE_MAGIC
)
{
ARENA_FREE
*
pArena
=
(
ARENA_FREE
*
)
ptr
-
1
;
ptr
+=
pArena
->
size
&
ARENA_SIZE_MASK
;
}
else
ptr
+=
entry
->
cbData
;
/* point to next arena */
if
(
ptr
>
(
char
*
)
currentheap
+
currentheap
->
size
-
1
)
{
/* proceed with next subheap */
if
(
!
(
currentheap
=
currentheap
->
next
))
...
...
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