- Sync with trunk r51165.

svn path=/branches/cmake-bringup/; revision=51166
This commit is contained in:
Amine Khaldi 2011-03-26 23:14:25 +00:00
commit 475719f162
249 changed files with 13280 additions and 5238 deletions

View file

@ -341,18 +341,9 @@ RtlpRemoveFreeBlock(PHEAP Heap,
BOOLEAN NoFill)
{
SIZE_T Result, RealSize;
PLIST_ENTRY OldBlink, OldFlink;
// FIXME: Maybe use RemoveEntryList?
/* Remove the free block */
OldFlink = FreeEntry->FreeList.Flink;
OldBlink = FreeEntry->FreeList.Blink;
OldBlink->Flink = OldFlink;
OldFlink->Blink = OldBlink;
/* Update the freelists bitmap */
if ((OldFlink == OldBlink) &&
/* Remove the free block and update the freelists bitmap */
if (RemoveEntryList(&FreeEntry->FreeList) &&
(Dedicated || (!Dedicated && FreeEntry->Size < HEAP_FREELISTS)))
{
RtlpClearFreeListsBit(Heap, FreeEntry);