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
0c024503
Commit
0c024503
authored
Sep 18, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add 0-length read tests for a mailslot.
parent
d6900fc5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mailslot.c
dlls/kernel32/tests/mailslot.c
+18
-0
No files found.
dlls/kernel32/tests/mailslot.c
View file @
0c024503
...
...
@@ -77,6 +77,24 @@ static int mailslot_test(void)
ok
(
hSlot
!=
INVALID_HANDLE_VALUE
,
"valid mailslot failed
\n
"
);
/* try and read/write to it */
count
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
ReadFile
(
INVALID_HANDLE_VALUE
,
buffer
,
0
,
&
count
,
NULL
);
todo_wine
ok
(
!
ret
,
"ReadFile should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
count
==
0
,
"expected 0, got %u
\n
"
,
count
);
count
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
ReadFile
(
hSlot
,
buffer
,
0
,
&
count
,
NULL
);
todo_wine
ok
(
!
ret
,
"ReadFile should fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SEM_TIMEOUT
,
"wrong error %u
\n
"
,
GetLastError
());
ok
(
count
==
0
,
"expected 0, got %u
\n
"
,
count
);
count
=
0
;
memset
(
buffer
,
0
,
sizeof
buffer
);
ret
=
ReadFile
(
hSlot
,
buffer
,
sizeof
buffer
,
&
count
,
NULL
);
...
...
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