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
4502c1da
Commit
4502c1da
authored
Dec 01, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move the insertion of the first block out of create_subheap.
parent
2e8b19ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
heap.c
dlls/ntdll/heap.c
+1
-4
No files found.
dlls/ntdll/heap.c
View file @
4502c1da
...
...
@@ -954,7 +954,6 @@ static SUBHEAP *create_subheap( struct heap *heap, DWORD flags, SIZE_T total_siz
block_init_free
(
first_block
(
subheap
),
flags
,
subheap
,
block_size
);
list_add_head
(
&
heap
->
subheap_list
,
&
subheap
->
entry
);
insert_free_block
(
heap
,
flags
,
subheap
,
first_block
(
subheap
)
);
return
subheap
;
}
...
...
@@ -1000,9 +999,7 @@ static struct block *find_free_block( struct heap *heap, ULONG flags, SIZE_T blo
TRACE
(
"created new sub-heap %p of %#Ix bytes for heap %p
\n
"
,
subheap
,
subheap_size
(
subheap
),
heap
);
entry
=
first_block
(
subheap
);
list_remove
(
&
entry
->
entry
);
return
&
entry
->
block
;
return
first_block
(
subheap
);
}
...
...
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