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
fdf2e7a3
Commit
fdf2e7a3
authored
Nov 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix a couple of failures on Windows.
parent
6fd4c628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
heap.c
dlls/kernel32/tests/heap.c
+7
-5
No files found.
dlls/kernel32/tests/heap.c
View file @
fdf2e7a3
...
...
@@ -75,7 +75,8 @@ START_TEST(heap)
/* 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
"
);
ok
(
(
ULONG_PTR
)
mem
%
16
==
0
||
broken
((
ULONG_PTR
)
mem
%
16
)
/* win9x */
,
"512K block not 16-byte aligned
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
/* Global*() functions */
...
...
@@ -191,10 +192,11 @@ START_TEST(heap)
/* invalid free */
SetLastError
(
MAGIC_DEAD
);
mem
=
GlobalFree
(
gbl
);
ok
(
mem
==
gbl
,
"Expected gbl, got %p
\n
"
,
mem
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
ok
(
mem
==
gbl
||
broken
(
mem
==
NULL
)
/* nt4 */
,
"Expected gbl, got %p
\n
"
,
mem
);
if
(
mem
==
gbl
)
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
gbl
=
GlobalAlloc
(
GMEM_DDESHARE
,
100
);
...
...
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