Commit 6f5131e4 authored by Alexandre Julliard's avatar Alexandre Julliard

ntoskrnl.exe: Allow returning data in ioctls along with a positive non-zero status.

parent 7ac931ac
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment