Bernhard Loos : ntoskrnl: irp.AssociatedIrp. SystemBuffer is also used for METHOD_IN/OUT_DIRECT ioctls.
Alexandre Julliard
julliard at winehq.org
Fri Nov 18 10:19:06 CST 2011
Module: wine
Branch: master
Commit: 66e98122b6fdccecac888c4c9a1b97f4f1b5e83f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=66e98122b6fdccecac888c4c9a1b97f4f1b5e83f
Author: Bernhard Loos <bernhardloos at googlemail.com>
Date: Fri Nov 18 11:21:14 2011 +0100
ntoskrnl: irp.AssociatedIrp.SystemBuffer is also used for METHOD_IN/OUT_DIRECT ioctls.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index b00c070..6126c3f 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;
More information about the wine-cvs
mailing list