* While r33037 fixed the alignment of areas put into reserved areas, it actually

broke their placement at the end of the reserved area, which was the main
  reason #4778 happened so often (it would have been more hidden else).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-10-15 11:35:31 +00:00
parent 4124f4801b
commit f1488adbf7
+4 -1
View File
@@ -1252,10 +1252,13 @@ second_chance:
// The new area will be placed at the end of the
// reserved area, and the reserved area will be resized
// to make space
alignedBase = ROUNDDOWN(next->base + next->size - size,
alignment);
foundSpot = true;
next->size = alignedBase - next->base;
last = next;
area->base = alignedBase;
last = next;
break;
}