[Stack] Set default fill value to 0 instead of 0xBE

It prevents corruption in few games
This commit is contained in:
Gliniak 2020-02-07 21:41:59 +01:00 committed by illusion
parent 13ab17dcad
commit 61b50fcf82
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ bool XThread::AllocateStack(uint32_t size) {
stack_base_ = stack_limit_ + size;
// Initialize the stack with junk
memory()->Fill(stack_alloc_base_, actual_size, 0xBE);
memory()->Fill(stack_alloc_base_, actual_size, 0x00);
// Setup the guard pages
heap->Protect(stack_alloc_base_, padding / 2, kMemoryProtectNoAccess);