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
a20b07c5
Commit
a20b07c5
authored
Sep 26, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make asynchronous WaitCommEvent report correct number of bytes returned.
parent
38871d84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
comm.c
dlls/kernel32/tests/comm.c
+0
-2
serial.c
dlls/ntdll/serial.c
+10
-1
No files found.
dlls/kernel32/tests/comm.c
View file @
a20b07c5
...
...
@@ -863,7 +863,6 @@ todo_wine
{
res
=
GetOverlappedResult
(
hcom
,
&
ovl_wait
,
&
bytes
,
FALSE
);
ok
(
res
,
"GetOverlappedResult reported error %d
\n
"
,
GetLastError
());
todo_wine
ok
(
bytes
==
sizeof
(
evtmask
),
"expected %u, written %u
\n
"
,
(
UINT
)
sizeof
(
evtmask
),
bytes
);
res
=
TRUE
;
}
...
...
@@ -2135,7 +2134,6 @@ todo_wine
last_event_time
=
after
;
ret
=
GetOverlappedResult
(
hcom
,
&
ovl_wait
,
&
bytes
,
FALSE
);
ok
(
ret
,
"GetOverlappedResult reported error %d
\n
"
,
GetLastError
());
todo_wine
ok
(
bytes
==
sizeof
(
evtmask
),
"expected sizeof(evtmask), got %u
\n
"
,
bytes
);
ok
(
evtmask
&
EV_RXCHAR
,
"EV_RXCHAR should be set
\n
"
);
...
...
dlls/ntdll/serial.c
View file @
a20b07c5
...
...
@@ -947,7 +947,16 @@ static DWORD CALLBACK wait_for_event(LPVOID arg)
}
if
(
needs_close
)
close
(
fd
);
}
if
(
commio
->
iosb
)
commio
->
iosb
->
u
.
Status
=
*
commio
->
events
?
STATUS_SUCCESS
:
STATUS_CANCELLED
;
if
(
commio
->
iosb
)
{
if
(
*
commio
->
events
)
{
commio
->
iosb
->
u
.
Status
=
STATUS_SUCCESS
;
commio
->
iosb
->
Information
=
sizeof
(
DWORD
);
}
else
commio
->
iosb
->
u
.
Status
=
STATUS_CANCELLED
;
}
if
(
commio
->
hEvent
)
NtSetEvent
(
commio
->
hEvent
,
NULL
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
commio
);
return
0
;
...
...
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