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
3f232785
Commit
3f232785
authored
Sep 03, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remember to set the iosb status if using a worker thread for serial wait.
parent
6cde7564
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
serial.c
dlls/ntdll/serial.c
+5
-2
No files found.
dlls/ntdll/serial.c
View file @
3f232785
...
...
@@ -851,6 +851,7 @@ typedef struct async_commio
{
HANDLE
hDevice
;
DWORD
*
events
;
IO_STATUS_BLOCK
*
iosb
;
HANDLE
hEvent
;
DWORD
evtmask
;
DWORD
mstat
;
...
...
@@ -985,12 +986,13 @@ 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
->
hEvent
)
NtSetEvent
(
commio
->
hEvent
,
NULL
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
commio
);
return
0
;
}
static
NTSTATUS
wait_on
(
HANDLE
hDevice
,
int
fd
,
HANDLE
hEvent
,
DWORD
*
events
)
static
NTSTATUS
wait_on
(
HANDLE
hDevice
,
int
fd
,
HANDLE
hEvent
,
PIO_STATUS_BLOCK
piosb
,
DWORD
*
events
)
{
async_commio
*
commio
;
NTSTATUS
status
;
...
...
@@ -1003,6 +1005,7 @@ static NTSTATUS wait_on(HANDLE hDevice, int fd, HANDLE hEvent, DWORD* events)
commio
->
hDevice
=
hDevice
;
commio
->
events
=
events
;
commio
->
iosb
=
piosb
;
commio
->
hEvent
=
hEvent
;
get_wait_mask
(
commio
->
hDevice
,
&
commio
->
evtmask
);
...
...
@@ -1301,7 +1304,7 @@ static inline NTSTATUS io_control(HANDLE hDevice,
case
IOCTL_SERIAL_WAIT_ON_MASK
:
if
(
lpOutBuffer
&&
nOutBufferSize
==
sizeof
(
DWORD
))
{
if
(
!
(
status
=
wait_on
(
hDevice
,
fd
,
hEvent
,
lpOutBuffer
)))
if
(
!
(
status
=
wait_on
(
hDevice
,
fd
,
hEvent
,
piosb
,
lpOutBuffer
)))
sz
=
sizeof
(
DWORD
);
}
else
...
...
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