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
74b04b76
Commit
74b04b76
authored
May 11, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix last block detection in heap_walk_blocks().
parent
0fc9a9e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
heap.c
dlls/ntdll/heap.c
+2
-3
No files found.
dlls/ntdll/heap.c
View file @
74b04b76
...
...
@@ -2399,7 +2399,6 @@ BOOLEAN WINAPI RtlValidateHeap( HANDLE handle, ULONG flags, const void *ptr )
return
ret
;
}
static
NTSTATUS
heap_walk_blocks
(
const
struct
heap
*
heap
,
const
SUBHEAP
*
subheap
,
const
struct
block
*
block
,
struct
rtl_heap_entry
*
entry
)
{
...
...
@@ -2423,8 +2422,8 @@ static NTSTATUS heap_walk_blocks( const struct heap *heap, const SUBHEAP *subhea
entry
->
lpData
=
(
char
*
)
block
+
block_get_overhead
(
block
);
entry
->
cbData
=
block_get_size
(
block
)
-
block_get_overhead
(
block
);
/* FIXME: last free block should not include uncommitted range, which also has its own overhead */
if
(
!
contains
(
blocks
,
commit_end
-
(
char
*
)
blocks
,
block
,
block_get_size
(
block
)
))
entry
->
cbData
=
commit_end
-
(
char
*
)
entry
->
lpData
-
4
*
BLOCK_ALIGN
;
if
(
!
contains
(
blocks
,
commit_end
-
4
*
BLOCK_ALIGN
-
(
char
*
)
blocks
,
block
,
block_get_size
(
block
)
))
entry
->
cbData
=
commit_end
-
4
*
BLOCK_ALIGN
-
(
char
*
)
entry
->
lpData
;
entry
->
cbOverhead
=
2
*
BLOCK_ALIGN
;
entry
->
iRegionIndex
=
0
;
entry
->
wFlags
=
0
;
...
...
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