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
f35c1b2d
Commit
f35c1b2d
authored
Feb 24, 2016
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Finish serial reads of size 0 immediately.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97b9ff81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
comm.c
dlls/kernel32/tests/comm.c
+0
-4
file.c
dlls/ntdll/file.c
+5
-0
No files found.
dlls/kernel32/tests/comm.c
View file @
f35c1b2d
...
...
@@ -2151,13 +2151,9 @@ static void test_read_write(void)
iob
.
Information
=
-
1
;
offset
.
QuadPart
=
(
LONGLONG
)
i
;
status
=
pNtReadFile
(
hcom
,
0
,
NULL
,
NULL
,
&
iob
,
buf
,
0
,
&
offset
,
NULL
);
/* FIXME: Remove once Wine is fixed */
if
(
status
==
STATUS_PENDING
)
WaitForSingleObject
(
hcom
,
TIMEOUT
);
if
(
i
>=
0
)
{
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
status
);
todo_wine
ok
(
U
(
iob
).
Status
==
STATUS_SUCCESS
,
"%d: expected STATUS_SUCCESS, got %#x
\n
"
,
i
,
U
(
iob
).
Status
);
ok
(
iob
.
Information
==
0
,
"%d: expected 0, got %lu
\n
"
,
i
,
iob
.
Information
);
}
...
...
dlls/ntdll/file.c
View file @
f35c1b2d
...
...
@@ -883,6 +883,11 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
status
=
length
?
STATUS_END_OF_FILE
:
STATUS_SUCCESS
;
goto
done
;
case
FD_TYPE_SERIAL
:
if
(
!
length
)
{
status
=
STATUS_SUCCESS
;
goto
done
;
}
break
;
default:
status
=
STATUS_PIPE_BROKEN
;
...
...
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