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
74e0c4ce
Commit
74e0c4ce
authored
Apr 20, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Apr 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Mind LFH pending blocks in RtlDestroyHeap().
parent
1aa6a900
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
heap.c
dlls/ntdll/heap.c
+5
-0
No files found.
dlls/ntdll/heap.c
View file @
74e0c4ce
...
...
@@ -326,6 +326,8 @@ C_ASSERT( offsetof(struct heap, subheap) <= REGION_ALIGN - 1 );
static
struct
heap
*
process_heap
;
/* main process heap */
static
NTSTATUS
heap_free_block_lfh
(
struct
heap
*
heap
,
ULONG
flags
,
struct
block
*
block
);
/* check if memory range a contains memory range b */
static
inline
BOOL
contains
(
const
void
*
a
,
SIZE_T
a_size
,
const
void
*
b
,
SIZE_T
b_size
)
{
...
...
@@ -1640,7 +1642,10 @@ HANDLE WINAPI RtlDestroyHeap( HANDLE handle )
{
heap
->
pending_free
=
NULL
;
for
(
tmp
=
pending
;
*
tmp
&&
tmp
!=
pending
+
MAX_FREE_PENDING
;
++
tmp
)
{
if
(
!
heap_free_block_lfh
(
heap
,
heap
->
flags
,
*
tmp
))
continue
;
heap_free_block
(
heap
,
heap
->
flags
,
*
tmp
);
}
RtlFreeHeap
(
handle
,
0
,
pending
);
}
...
...
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