From cb6798f145da160f4e4cf7c27819ca67a1879d8d Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Sat, 21 Aug 2004 20:42:10 +0000 Subject: [PATCH] Fix arithmetics on void. svn path=/trunk/; revision=10642 --- reactos/ntoskrnl/io/buildirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/buildirp.c b/reactos/ntoskrnl/io/buildirp.c index 60742cf2775..587db7a1d6a 100644 --- a/reactos/ntoskrnl/io/buildirp.c +++ b/reactos/ntoskrnl/io/buildirp.c @@ -1,4 +1,4 @@ -/* $Id: buildirp.c,v 1.44 2004/08/15 16:39:03 chorns Exp $ +/* $Id: buildirp.c,v 1.45 2004/08/21 20:42:10 tamlin Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -258,7 +258,7 @@ IoBuildDeviceIoControlRequest(ULONG IoControlCode, RtlCopyMemory(Irp->AssociatedIrp.SystemBuffer, InputBuffer, InputBufferLength); - RtlZeroMemory(Irp->AssociatedIrp.SystemBuffer + InputBufferLength, + RtlZeroMemory((char*)Irp->AssociatedIrp.SystemBuffer + InputBufferLength, BufferLength - InputBufferLength); } else