[ros-diffs] [fireball] 38361: - 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.

fireball at svn.reactos.org fireball at svn.reactos.org
Fri Dec 26 22:57:11 CET 2008


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?rev=38361&r1=38360&r2=38361&view=diff
==============================================================================
--- 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;
 



More information about the Ros-diffs mailing list