[Stack] Set default fill value to 0 instead of 0xBE
It prevents corruption in few games
This commit is contained in:
parent
11d48f5dff
commit
7a094d23a7
|
@ -241,7 +241,7 @@ bool XThread::AllocateStack(uint32_t size) {
|
||||||
stack_base_ = stack_limit_ + size;
|
stack_base_ = stack_limit_ + size;
|
||||||
|
|
||||||
// Initialize the stack with junk
|
// 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
|
// Setup the guard pages
|
||||||
heap->Protect(stack_alloc_base_, padding / 2, kMemoryProtectNoAccess);
|
heap->Protect(stack_alloc_base_, padding / 2, kMemoryProtectNoAccess);
|
||||||
|
|
Loading…
Reference in New Issue