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
1cdccc7d
Commit
1cdccc7d
authored
Jan 04, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Comment out a couple of heap tests that crash on 64-bit Vista.
parent
52f87c4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
heap.c
dlls/kernel32/tests/heap.c
+19
-13
No files found.
dlls/kernel32/tests/heap.c
View file @
1cdccc7d
...
...
@@ -190,13 +190,16 @@ START_TEST(heap)
ok
(
mem
==
NULL
,
"Expected NULL, got %p
\n
"
,
mem
);
/* invalid free */
SetLastError
(
MAGIC_DEAD
);
mem
=
GlobalFree
(
gbl
);
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
());
if
(
sizeof
(
void
*
)
!=
8
)
/* crashes on 64-bit Vista */
{
SetLastError
(
MAGIC_DEAD
);
mem
=
GlobalFree
(
gbl
);
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
);
...
...
@@ -211,12 +214,15 @@ START_TEST(heap)
"Expected 1 or 0, got %d
\n
"
,
res
);
/* GlobalSize on an invalid handle */
SetLastError
(
MAGIC_DEAD
);
size
=
GlobalSize
((
HGLOBAL
)
0xc042
);
ok
(
size
==
0
,
"Expected 0, got %ld
\n
"
,
size
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
if
(
sizeof
(
void
*
)
!=
8
)
/* crashes on 64-bit Vista */
{
SetLastError
(
MAGIC_DEAD
);
size
=
GlobalSize
((
HGLOBAL
)
0xc042
);
ok
(
size
==
0
,
"Expected 0, got %ld
\n
"
,
size
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* win9x */
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
}
/* ####################################### */
/* Local*() functions */
...
...
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