From b7e51fe08f5c2e631871f5fed582a881943e6d90 Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Sat, 21 Aug 2004 20:47:28 +0000 Subject: [PATCH] Fix arithmetics on void. svn path=/trunk/; revision=10643 --- reactos/ntoskrnl/io/mdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/mdl.c b/reactos/ntoskrnl/io/mdl.c index 71bfb363002..635addb6a9a 100644 --- a/reactos/ntoskrnl/io/mdl.c +++ b/reactos/ntoskrnl/io/mdl.c @@ -1,4 +1,4 @@ -/* $Id: mdl.c,v 1.17 2004/08/15 16:39:03 chorns Exp $ +/* $Id: mdl.c,v 1.18 2004/08/21 20:47:28 tamlin Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -102,7 +102,7 @@ IoBuildPartialMdl(PMDL SourceMdl, TargetMdl->ByteCount = Length; TargetMdl->Process = SourceMdl->Process; Delta = (ULONG_PTR)VirtualAddress - ((ULONG_PTR)SourceMdl->StartVa + SourceMdl->ByteOffset); - TargetMdl->MappedSystemVa = SourceMdl->MappedSystemVa + Delta; + TargetMdl->MappedSystemVa = (char*)SourceMdl->MappedSystemVa + Delta; TargetMdl->MdlFlags = SourceMdl->MdlFlags & (MDL_IO_PAGE_READ|MDL_SOURCE_IS_NONPAGED_POOL|MDL_MAPPED_TO_SYSTEM_VA); TargetMdl->MdlFlags |= MDL_PARTIAL;