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
02229896
Commit
02229896
authored
Jan 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use the correct value for invalid heap sizes on 64-bit.
parent
3b221485
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
heap.c
dlls/kernel32/tests/heap.c
+6
-6
No files found.
dlls/kernel32/tests/heap.c
View file @
02229896
...
...
@@ -64,13 +64,13 @@ START_TEST(heap)
/* test some border cases of HeapAlloc and HeapReAlloc */
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
0
);
ok
(
mem
!=
NULL
,
"memory not allocated for size 0
\n
"
);
msecond
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
mem
,
~
0UL
-
7
);
ok
(
msecond
==
NULL
,
"HeapReAlloc(
0xfffffff8
) should have failed
\n
"
);
msecond
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
mem
,
~
0UL
);
ok
(
msecond
==
NULL
,
"HeapReAlloc(
0xffffffff
) should have failed
\n
"
);
msecond
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
mem
,
~
(
SIZE_T
)
0
-
7
);
ok
(
msecond
==
NULL
,
"HeapReAlloc(
~0 - 7
) should have failed
\n
"
);
msecond
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
mem
,
~
(
SIZE_T
)
0
);
ok
(
msecond
==
NULL
,
"HeapReAlloc(
~0
) should have failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
~
0UL
);
ok
(
mem
==
NULL
,
"memory allocated for size ~0
UL
\n
"
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
~
(
SIZE_T
)
0
);
ok
(
mem
==
NULL
,
"memory allocated for size ~0
\n
"
);
/* 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