[*] Sometimes let ByteBuffer::Resize pass when it shouldn't be allowed to

This commit is contained in:
Reece Wilson 2024-06-02 00:05:19 +01:00
parent 588322252f
commit 4e7f3ed3dd

View File

@ -234,6 +234,15 @@ namespace Aurora::Memory
{ {
__audetail::BufferAllocLock lock(this); __audetail::BufferAllocLock lock(this);
if (!this->flagCircular)
{
if (this->length >= length)
{
this->length = length;
return true;
}
}
if (this->flagNoFree || if (this->flagNoFree ||
this->flagNoRealloc || this->flagNoRealloc ||
this->uInUseCounter) this->uInUseCounter)