From 66e98122b6fdccecac888c4c9a1b97f4f1b5e83f Mon Sep 17 00:00:00 2001 From: Bernhard Loos Date: Fri, 18 Nov 2011 11:21:14 +0100 Subject: [PATCH] ntoskrnl: irp.AssociatedIrp.SystemBuffer is also used for METHOD_IN/OUT_DIRECT ioctls. --- dlls/ntoskrnl.exe/ntoskrnl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index b00c070c66d..6126c3fb9ff 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -159,6 +159,8 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff, return STATUS_NO_MEMORY; memcpy( irp.AssociatedIrp.SystemBuffer, in_buff, in_size ); } + else + irp.AssociatedIrp.SystemBuffer = in_buff; irp.UserBuffer = out_buff; irp.MdlAddress = &mdl; irp.Tail.Overlay.s.u2.CurrentStackLocation = &irpsp;