Module: wine Branch: master Commit: d140164d7689c4c51964a3de8c4332d8a8332a70 URL: https://gitlab.winehq.org/wine/wine/-/commit/d140164d7689c4c51964a3de8c4332d...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Mon May 27 22:33:41 2024 -0500
ntdll: Use file_complete_async() in tape_DeviceIoControl().
Thereby also handling completion and APCs.
---
dlls/ntdll/unix/tape.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/ntdll/unix/tape.c b/dlls/ntdll/unix/tape.c index f513e558898..366096bbf4f 100644 --- a/dlls/ntdll/unix/tape.c +++ b/dlls/ntdll/unix/tape.c @@ -580,10 +580,6 @@ NTSTATUS tape_DeviceIoControl( HANDLE device, HANDLE event, PIO_APC_ROUTINE apc, 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; }