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

This commit is contained in:
Alexandre Julliard 2007-12-18 19:46:39 +01:00
parent 7ac931acf2
commit 6f5131e47f
1 changed files with 1 additions and 1 deletions

View File

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