mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- 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.
svn path=/trunk/; revision=38361
This commit is contained in:
@@ -121,7 +121,7 @@ IoBuildPartialMdl(IN PMDL SourceMdl,
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user