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
5741f94d
Commit
5741f94d
authored
Nov 09, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Always trace sizes with %#x.
parent
c9cf44a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
heap.c
dlls/ntdll/heap.c
+7
-7
No files found.
dlls/ntdll/heap.c
View file @
5741f94d
...
...
@@ -507,7 +507,7 @@ static void heap_dump( const struct heap *heap )
TRACE
(
" free_lists: %p
\n
"
,
heap
->
free_lists
);
for
(
i
=
0
;
i
<
HEAP_NB_FREE_LISTS
;
i
++
)
TRACE
(
" %p: size %8Ix, prev %p, next %p
\n
"
,
heap
->
free_lists
+
i
,
get_free_list_block_size
(
i
),
TRACE
(
" %p: size %
#
8Ix, prev %p, next %p
\n
"
,
heap
->
free_lists
+
i
,
get_free_list_block_size
(
i
),
LIST_ENTRY
(
heap
->
free_lists
[
i
].
entry
.
prev
,
struct
entry
,
entry
),
LIST_ENTRY
(
heap
->
free_lists
[
i
].
entry
.
next
,
struct
entry
,
entry
)
);
...
...
@@ -801,7 +801,7 @@ static struct block *allocate_large_block( struct heap *heap, DWORD flags, SIZE_
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
address
,
0
,
&
total_size
,
MEM_COMMIT
,
get_protection_type
(
flags
)))
{
WARN
(
"Could not allocate block for %08
Ix bytes
\n
"
,
size
);
WARN
(
"Could not allocate block for %#
Ix bytes
\n
"
,
size
);
return
NULL
;
}
...
...
@@ -860,7 +860,7 @@ static struct block *realloc_large_block( struct heap *heap, DWORD flags, struct
if
(
flags
&
HEAP_REALLOC_IN_PLACE_ONLY
)
return
NULL
;
if
(
!
(
block
=
allocate_large_block
(
heap
,
flags
,
size
)))
{
WARN
(
"Could not allocate block for %08
Ix bytes
\n
"
,
size
);
WARN
(
"Could not allocate block for %#
Ix bytes
\n
"
,
size
);
return
NULL
;
}
...
...
@@ -934,13 +934,13 @@ static SUBHEAP *HEAP_CreateSubHeap( struct heap **heap_ptr, LPVOID address, DWOR
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
address
,
0
,
&
totalSize
,
MEM_RESERVE
,
get_protection_type
(
flags
)
))
{
WARN
(
"Could not allocate %08
Ix bytes
\n
"
,
totalSize
);
WARN
(
"Could not allocate %#
Ix bytes
\n
"
,
totalSize
);
return
NULL
;
}
if
(
NtAllocateVirtualMemory
(
NtCurrentProcess
(),
&
address
,
0
,
&
commitSize
,
MEM_COMMIT
,
get_protection_type
(
flags
)
))
{
WARN
(
"Could not commit %08
Ix bytes for sub-heap %p
\n
"
,
commitSize
,
address
);
WARN
(
"Could not commit %#
Ix bytes for sub-heap %p
\n
"
,
commitSize
,
address
);
return
NULL
;
}
}
...
...
@@ -1037,7 +1037,7 @@ static struct block *find_free_block( struct heap *heap, SIZE_T block_size, SUBH
if
(
!
(
heap
->
flags
&
HEAP_GROWABLE
))
{
WARN
(
"Not enough space in heap %p for %08
Ix bytes
\n
"
,
heap
,
block_size
);
WARN
(
"Not enough space in heap %p for %#
Ix bytes
\n
"
,
heap
,
block_size
);
return
NULL
;
}
...
...
@@ -1058,7 +1058,7 @@ static struct block *find_free_block( struct heap *heap, SIZE_T block_size, SUBH
max
(
heap
->
grow_size
,
total_size
)
);
}
TRACE
(
"created new sub-heap %p of %
08
Ix bytes for heap %p
\n
"
,
*
subheap
,
subheap_size
(
*
subheap
),
heap
);
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
);
...
...
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