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
14e7febc
Commit
14e7febc
authored
Apr 04, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test HeapReAlloc with size 0.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b709998f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
heap.c
dlls/kernel32/tests/heap.c
+7
-0
No files found.
dlls/kernel32/tests/heap.c
View file @
14e7febc
...
...
@@ -118,6 +118,13 @@ static void test_heap(void)
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
~
(
SIZE_T
)
0
);
ok
(
mem
==
NULL
,
"memory allocated for size ~0
\n
"
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
17
);
msecond
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
mem
,
0
);
ok
(
msecond
!=
NULL
,
"HeapReAlloc(0) should have succeeded
\n
"
);
size
=
HeapSize
(
GetProcessHeap
(),
0
,
msecond
);
ok
(
size
==
0
||
broken
(
size
==
1
)
/* some vista and win7 */
,
"HeapSize should have returned 0 instead of %lu
\n
"
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
msecond
);
/* large blocks must be 16-byte aligned */
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
512
*
1024
);
...
...
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