Elizabeth Figura : ntdll: Use file_complete_async() in serial_DeviceIoControl().
Module: wine Branch: master Commit: 0a42bd290de25d6ff4eb9bf895b74a9003833fa4 URL: https://gitlab.winehq.org/wine/wine/-/commit/0a42bd290de25d6ff4eb9bf895b74a9... Author: Elizabeth Figura <zfigura(a)codeweavers.com> Date: Tue May 28 18:50:44 2024 -0500 ntdll: Use file_complete_async() in serial_DeviceIoControl(). Thereby also handling completion and APCs. --- dlls/ntdll/unix/serial.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/ntdll/unix/serial.c b/dlls/ntdll/unix/serial.c index a8abee6eeb6..cc3929c7a0b 100644 --- a/dlls/ntdll/unix/serial.c +++ b/dlls/ntdll/unix/serial.c @@ -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; }
participants (1)
-
Alexandre Julliard