Author: sir_richard
Date: Tue Oct 19 17:01:28 2010
New Revision: 49205
URL:
http://svn.reactos.org/svn/reactos?rev=49205&view=rev
Log:
[NTOS]: Use allocation attribute 0x1 instead of 0xC0000000 to let RosMm know this is an
ARM3 section. 0xC0000000 is actually a valid combination of SEC_ flags, 0x1 is illegal and
thus recognized.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue Oct 19 17:01:28 2010
@@ -4902,7 +4902,7 @@
PROS_SECTION_OBJECT *SectionObject = (PROS_SECTION_OBJECT *)Section;
/* Check if an ARM3 section is being created instead */
- if (AllocationAttributes & 0xC0000000)
+ if (AllocationAttributes & 1)
{
DPRINT1("arm 3 path\n");
return MmCreateArm3Section(Section,
@@ -4910,7 +4910,7 @@
ObjectAttributes,
MaximumSize,
SectionPageProtection,
- AllocationAttributes &~ 0xC0000000,
+ AllocationAttributes &~ 1,
FileHandle,
File);
}