mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 19:03:38 +00:00
[CMAKE]
- Sync with trunk r51165. svn path=/branches/cmake-bringup/; revision=51166
This commit is contained in:
commit
475719f162
249 changed files with 13280 additions and 5238 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue