mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
[NTOSKRNL]
Don't declare a variable in the moddle of a function, MSVC gets very angry about that. svn path=/branches/cmake-bringup/; revision=49604
This commit is contained in:
parent
440627d3df
commit
c4c880d59c
|
@ -98,11 +98,13 @@ MiInsertNode(IN PMM_AVL_TABLE Table,
|
|||
IN PMMADDRESS_NODE Parent,
|
||||
IN TABLE_SEARCH_RESULT Result)
|
||||
{
|
||||
PMMVAD Vad;
|
||||
|
||||
/* Insert it into the tree */
|
||||
RtlpInsertAvlTreeNode(Table, NewNode, Parent, Result);
|
||||
|
||||
/* Now insert an ARM3 MEMORY_AREA for this node, unless the insert was already from the MEMORY_AREA code */
|
||||
PMMVAD Vad = (PMMVAD)NewNode;
|
||||
Vad = (PMMVAD)NewNode;
|
||||
if (Vad->u.VadFlags.Spare == 0)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
@ -166,6 +168,8 @@ NTAPI
|
|||
MiRemoveNode(IN PMMADDRESS_NODE Node,
|
||||
IN PMM_AVL_TABLE Table)
|
||||
{
|
||||
PMMVAD Vad;
|
||||
|
||||
/* Call the AVL code */
|
||||
RtlpDeleteAvlTreeNode(Table, Node);
|
||||
|
||||
|
@ -181,7 +185,7 @@ MiRemoveNode(IN PMMADDRESS_NODE Node,
|
|||
}
|
||||
|
||||
/* Free the node from ReactOS view as well */
|
||||
PMMVAD Vad = (PMMVAD)Node;
|
||||
Vad = (PMMVAD)Node;
|
||||
if (Vad->u.VadFlags.Spare == 0)
|
||||
{
|
||||
PMEMORY_AREA MemoryArea;
|
||||
|
|
|
@ -374,8 +374,9 @@ MmInsertMemoryArea(
|
|||
/* Build a lame VAD if this is a user-space allocation */
|
||||
if ((marea->EndingAddress < MmSystemRangeStart) && (marea->Type != MEMORY_AREA_OWNED_BY_ARM3))
|
||||
{
|
||||
ASSERT(marea->Type == MEMORY_AREA_VIRTUAL_MEMORY || marea->Type == MEMORY_AREA_SECTION_VIEW);
|
||||
PMMVAD Vad;
|
||||
|
||||
ASSERT(marea->Type == MEMORY_AREA_VIRTUAL_MEMORY || marea->Type == MEMORY_AREA_SECTION_VIEW);
|
||||
Vad = ExAllocatePoolWithTag(NonPagedPool, sizeof(MMVAD), 'Fake');
|
||||
ASSERT(Vad);
|
||||
RtlZeroMemory(Vad, sizeof(MMVAD));
|
||||
|
|
Loading…
Reference in a new issue