From 7f57867f4989cc514986b8d43dc83ad48d067db1 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 7 Jun 2015 18:29:09 -0500 Subject: [PATCH] Let's fix the strange stack overflows doing the stupid thing. --- src/xenia/kernel/objects/xthread.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/objects/xthread.cc b/src/xenia/kernel/objects/xthread.cc index 1fbbff29c..89db7072f 100644 --- a/src/xenia/kernel/objects/xthread.cc +++ b/src/xenia/kernel/objects/xthread.cc @@ -329,8 +329,10 @@ static uint32_t __stdcall XThreadStartCallbackWin32(void* param) { X_STATUS XThread::PlatformCreate() { Retain(); bool suspended = creation_params_.creation_flags & 0x1; + const size_t kStackSize = 16 * 1024 * 1024; // let's do the stupid thing thread_handle_ = - CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)XThreadStartCallbackWin32, + CreateThread(NULL, kStackSize, + (LPTHREAD_START_ROUTINE)XThreadStartCallbackWin32, this, suspended ? CREATE_SUSPENDED : 0, NULL); if (!thread_handle_) { uint32_t last_error = GetLastError();