ntdll: Use file_complete_async() in cdrom_DeviceIoControl().

Thereby also handling completion and APCs.
This commit is contained in:
Elizabeth Figura 2024-05-28 18:22:03 -05:00 committed by Alexandre Julliard
parent d140164d76
commit c133f14fe6

View file

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