Author: fireball
Date: Fri Dec 26 15:57:11 2008
New Revision: 38361
URL:
http://svn.reactos.org/svn/reactos?rev=38361&view=rev
Log:
- Fix one more typo in the IoBuildPartialMdl code leading to ignore of TargetMdl flags and
always setting MDL_ALLOCATED_FIXED_SIZE and MDL_ALLOCATED_MUST_SUCCEED even if a caller
did not want so. Thanks to Alex Ionescu.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/iomdl.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/iomdl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iomdl.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/iomdl.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/iomdl.c [iso-8859-1] Fri Dec 26 15:57:11 2008
@@ -121,7 +121,7 @@
Length = ADDRESS_AND_SIZE_TO_SPAN_PAGES(VirtualAddress, Length);
/* Set the MDL Flags */
- TargetMdl->MdlFlags = (MDL_ALLOCATED_FIXED_SIZE | MDL_ALLOCATED_MUST_SUCCEED);
+ TargetMdl->MdlFlags &= (MDL_ALLOCATED_FIXED_SIZE |
MDL_ALLOCATED_MUST_SUCCEED);
TargetMdl->MdlFlags |= SourceMdl->MdlFlags & FlagsMask;
TargetMdl->MdlFlags |= MDL_PARTIAL;