[*] Sometimes let ByteBuffer::Resize pass when it shouldn't be allowed to
This commit is contained in:
parent
588322252f
commit
4e7f3ed3dd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user