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
21453b4c
Commit
21453b4c
authored
Oct 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Allocate a new virtual region for large blocks, and ensure 16-byte alignment.
parent
38815e1c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
heap.c
dlls/kernel32/tests/heap.c
+6
-0
heap.c
dlls/ntdll/heap.c
+0
-0
No files found.
dlls/kernel32/tests/heap.c
View file @
21453b4c
...
@@ -72,6 +72,12 @@ START_TEST(heap)
...
@@ -72,6 +72,12 @@ START_TEST(heap)
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
~
0UL
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
~
0UL
);
ok
(
mem
==
NULL
,
"memory allocated for size ~0UL
\n
"
);
ok
(
mem
==
NULL
,
"memory allocated for size ~0UL
\n
"
);
/* large blocks must be 16-byte aligned */
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
512
*
1024
);
ok
(
mem
!=
NULL
,
"failed for size 512K
\n
"
);
ok
(
(
ULONG_PTR
)
mem
%
16
==
0
,
"512K block not 16-byte aligned
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
/* Global*() functions */
/* Global*() functions */
gbl
=
GlobalAlloc
(
GMEM_MOVEABLE
,
0
);
gbl
=
GlobalAlloc
(
GMEM_MOVEABLE
,
0
);
ok
(
gbl
!=
NULL
,
"global memory not allocated for size 0
\n
"
);
ok
(
gbl
!=
NULL
,
"global memory not allocated for size 0
\n
"
);
...
...
dlls/ntdll/heap.c
View file @
21453b4c
This diff is collapsed.
Click to expand it.
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