4.26 beta

This commit is contained in:
Igor Pavlov
2005-08-05 00:00:00 +00:00
committed by Kornel Lesiński
parent af1fe52701
commit 31e7b924e8
56 changed files with 2185 additions and 188 deletions

View File

@@ -109,8 +109,11 @@ public:
if (SubAllocatorSize == size)
return true;
StopSubAllocator();
if ((HeapStart = (Byte *)::BigAlloc(size)) == 0)
return false;
if (size == 0)
HeapStart = 0;
else
if ((HeapStart = (Byte *)::BigAlloc(size)) == 0)
return false;
SubAllocatorSize = size;
return true;
}