Module: wine Branch: master Commit: c133f14fe6d6eeaeb2f1b0c770c32b7bb24aa6ff URL: https://gitlab.winehq.org/wine/wine/-/commit/c133f14fe6d6eeaeb2f1b0c770c32b7...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Tue May 28 18:22:03 2024 -0500
ntdll: Use file_complete_async() in cdrom_DeviceIoControl().
Thereby also handling completion and APCs.
---
dlls/ntdll/unix/cdrom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/ntdll/unix/cdrom.c b/dlls/ntdll/unix/cdrom.c index 427e559968f..c92ccc1185d 100644 --- a/dlls/ntdll/unix/cdrom.c +++ b/dlls/ntdll/unix/cdrom.c @@ -3113,10 +3113,6 @@ NTSTATUS cdrom_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; }