- Fixed the calculation of the TopAddress in MmFindGapTopDown.

svn path=/trunk/; revision=4733
This commit is contained in:
Hartmut Birr 2003-05-20 18:56:25 +00:00
parent 562eeb5ceb
commit aa2f971da2

View file

@ -301,7 +301,7 @@ PVOID MmFindGapTopDown(PMADDRESS_SPACE AddressSpace, ULONG Length)
DPRINT("Found gap at %p\n", TopAddress - Length);
return(TopAddress - Length + 1);
}
TopAddress = current->BaseAddress;
TopAddress = current->BaseAddress - 1;
}
current_entry = current_entry->Blink;
}