mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
ntoskrnl: irp.AssociatedIrp.SystemBuffer is also used for METHOD_IN/OUT_DIRECT ioctls.
This commit is contained in:
parent
768300c8aa
commit
66e98122b6
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
memcpy( irp.AssociatedIrp.SystemBuffer, in_buff, in_size );
|
memcpy( irp.AssociatedIrp.SystemBuffer, in_buff, in_size );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
irp.AssociatedIrp.SystemBuffer = in_buff;
|
||||||
irp.UserBuffer = out_buff;
|
irp.UserBuffer = out_buff;
|
||||||
irp.MdlAddress = &mdl;
|
irp.MdlAddress = &mdl;
|
||||||
irp.Tail.Overlay.s.u2.CurrentStackLocation = &irpsp;
|
irp.Tail.Overlay.s.u2.CurrentStackLocation = &irpsp;
|
||||||
|
|
Loading…
Reference in a new issue