mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
ntoskrnl.exe: Allow returning data in ioctls along with a positive non-zero status.
This commit is contained in:
parent
7ac931acf2
commit
6f5131e47f
@ -172,7 +172,7 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
|
||||
DPRINTF( "%04x:Ret driver dispatch %p (device=%p,irp=%p) retval=%08x\n",
|
||||
GetCurrentThreadId(), dispatch, device, &irp, status );
|
||||
|
||||
*out_size = irp.IoStatus.u.Status ? 0 : irp.IoStatus.Information;
|
||||
*out_size = (irp.IoStatus.u.Status >= 0) ? irp.IoStatus.Information : 0;
|
||||
return irp.IoStatus.u.Status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user