mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
ntdll: Use file_complete_async() in serial_DeviceIoControl().
Thereby also handling completion and APCs.
This commit is contained in:
parent
c133f14fe6
commit
0a42bd290d
|
@ -1457,11 +1457,7 @@ NTSTATUS serial_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE ap
|
|||
if (needs_close) close( fd );
|
||||
|
||||
if (!NT_ERROR(status))
|
||||
{
|
||||
io->Status = status;
|
||||
io->Information = sz;
|
||||
if (event) NtSetEvent(event, NULL);
|
||||
}
|
||||
file_complete_async( device, event, apc, apc_user, io, status, sz );
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue