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
00c64fcb
Commit
00c64fcb
authored
May 03, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Ignore HEAP_(TAIL|FREE)_CHECKING_ENABLED flags in RtlCreateHeap.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a21c93cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
heap.c
dlls/kernel32/tests/heap.c
+0
-2
heap.c
dlls/ntdll/heap.c
+1
-0
No files found.
dlls/kernel32/tests/heap.c
View file @
00c64fcb
...
...
@@ -2435,9 +2435,7 @@ static void test_heap_layout( HANDLE handle, DWORD global_flag, DWORD heap_flags
if
(
global_flag
&
FLG_HEAP_ENABLE_TAGGING
)
heap_flags
|=
HEAP_SHARED
;
if
(
!
(
global_flag
&
FLG_HEAP_PAGE_ALLOCS
))
force_flags
&=
~
(
HEAP_GROWABLE
|
HEAP_PRIVATE
);
todo_wine_if
(
(
heap
->
force_flags
&
~
heap_flags
)
&
(
HEAP_TAIL_CHECKING_ENABLED
|
HEAP_FREE_CHECKING_ENABLED
)
)
ok
(
heap
->
force_flags
==
force_flags
,
"got force_flags %#x
\n
"
,
heap
->
force_flags
);
todo_wine_if
(
(
heap
->
flags
&
~
heap_flags
)
&
(
HEAP_TAIL_CHECKING_ENABLED
|
HEAP_FREE_CHECKING_ENABLED
)
)
ok
(
heap
->
flags
==
heap_flags
,
"got flags %#x
\n
"
,
heap
->
flags
);
if
(
heap
->
flags
&
HEAP_PAGE_ALLOCS
)
...
...
dlls/ntdll/heap.c
View file @
00c64fcb
...
...
@@ -1570,6 +1570,7 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, PVOID addr, SIZE_T totalSize, SIZE_T c
/* Allocate the heap block */
flags
&=
~
(
HEAP_TAIL_CHECKING_ENABLED
|
HEAP_FREE_CHECKING_ENABLED
);
if
(
processHeap
)
flags
|=
HEAP_PRIVATE
;
if
(
!
processHeap
||
!
totalSize
||
(
flags
&
HEAP_SHARED
))
flags
|=
HEAP_GROWABLE
;
if
(
!
totalSize
)
totalSize
=
HEAP_DEF_SIZE
;
...
...
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