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
03d23bd4
Commit
03d23bd4
authored
Jun 29, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix a few test failures in win9x.
parent
ac5885ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
heap.c
dlls/kernel32/tests/heap.c
+12
-6
No files found.
dlls/kernel32/tests/heap.c
View file @
03d23bd4
...
...
@@ -186,23 +186,29 @@ START_TEST(heap)
SetLastError
(
MAGIC_DEAD
);
mem
=
GlobalFree
(
gbl
);
ok
(
mem
==
gbl
,
"Expected gbl, got %p
\n
"
,
mem
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
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
);
res
=
GlobalUnlock
(
gbl
);
ok
(
res
==
1
,
"Expected 1, got %d
\n
"
,
res
);
ok
(
res
==
1
||
res
==
0
,
/* win9x */
"Expected 1 or 0, got %d
\n
"
,
res
);
res
=
GlobalUnlock
(
gbl
);
ok
(
res
==
1
,
"Expected 1, got %d
\n
"
,
res
);
ok
(
res
==
1
||
res
==
0
,
/* win9x */
"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
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
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