mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
Fixed crash caused by failure to allocate memory block of very special size
Allocation of 810 FState objects (32400 bytes in total) could be performed in MSVC x64 build but worked in 32-bit version This fixes https://mantis.zdoom.org/view.php?id=602
This commit is contained in:
parent
29402ff685
commit
403634c0e1
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ FMemArena::Block *FMemArena::AddBlock(size_t size)
|
||||||
|
|
||||||
void FMemArena::Block::Reset()
|
void FMemArena::Block::Reset()
|
||||||
{
|
{
|
||||||
Avail = RoundPointer(this + sizeof(*this));
|
Avail = RoundPointer(reinterpret_cast<char*>(this) + sizeof(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in a new issue