mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll: Always fill the 32-bit iosb for overlapped handles, for regular read/write.
This commit is contained in:
parent
5125f9d5af
commit
be0d882e89
1 changed files with 3 additions and 6 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue