ntdll: Always fill the 32-bit iosb for overlapped handles, for regular read/write.

This commit is contained in:
Elizabeth Figura 2024-06-13 23:24:42 -05:00 committed by Alexandre Julliard
parent 5125f9d5af
commit be0d882e89

View file

@ -5721,8 +5721,7 @@ err:
if (needs_close) close( unix_handle );
if (status == STATUS_SUCCESS || (status == STATUS_END_OF_FILE && (!async_read || type == FD_TYPE_FILE)))
{
io->Status = status;
io->Information = total;
set_sync_iosb( io, status, total, options );
TRACE("= SUCCESS (%u)\n", total);
if (event) NtSetEvent( event, NULL );
if (apc && (!status || async_read)) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc,
@ -5802,8 +5801,7 @@ NTSTATUS WINAPI NtReadFileScatter( HANDLE file, HANDLE event, PIO_APC_ROUTINE ap
send_completion = cvalue != 0;
if (needs_close) close( unix_handle );
io->Status = status;
io->Information = total;
set_sync_iosb( io, status, total, options );
TRACE("= 0x%08x (%u)\n", status, total);
if (event) NtSetEvent( event, NULL );
if (apc) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc, (ULONG_PTR)apc_user, iosb_ptr, 0 );
@ -6031,8 +6029,7 @@ err:
if (status == STATUS_SUCCESS)
{
io->Status = status;
io->Information = total;
set_sync_iosb( io, status, total, options );
TRACE("= SUCCESS (%u)\n", total);
if (event) NtSetEvent( event, NULL );
if (apc) NtQueueApcThread( GetCurrentThread(), (PNTAPCFUNC)apc, (ULONG_PTR)apc_user, iosb_ptr, 0 );