ntdll: Use file_complete_async() in serial_DeviceIoControl().

Thereby also handling completion and APCs.
This commit is contained in:
Elizabeth Figura 2024-05-28 18:50:44 -05:00 committed by Alexandre Julliard
parent c133f14fe6
commit 0a42bd290d

View file

@ -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;
}