Fix mmFindBlock function.

This commit is contained in:
Michal Krol
2006-08-02 14:22:06 +00:00
parent 365582dd6f
commit 60ba2d88b3
+1 -1
View File
@@ -193,7 +193,7 @@ mmFindBlock(struct mem_block *heap, int start)
{
struct mem_block *p;
for (p = heap->next_free; p != heap; p = p->next_free) {
for (p = heap->next; p != heap; p = p->next) {
if (p->ofs == start)
return p;
}