diff --git a/LEGO1/omni/include/mxthread.h b/LEGO1/omni/include/mxthread.h index 57ed2443..6d148edd 100644 --- a/LEGO1/omni/include/mxthread.h +++ b/LEGO1/omni/include/mxthread.h @@ -14,7 +14,7 @@ public: // Note: Comes before virtual destructor virtual MxResult Run(); - MxResult Start(MxS32 p_stack, MxS32 p_flag); + MxResult Start(MxS32 p_stackSize, MxS32 p_flag); void Terminate(); void Sleep(MxS32 p_milliseconds); diff --git a/LEGO1/omni/src/system/mxthread.cpp b/LEGO1/omni/src/system/mxthread.cpp index b0bd5b51..f639f74d 100644 --- a/LEGO1/omni/src/system/mxthread.cpp +++ b/LEGO1/omni/src/system/mxthread.cpp @@ -25,13 +25,14 @@ MxThread::~MxThread() typedef unsigned(__stdcall* ThreadFunc)(void*); // FUNCTION: LEGO1 0x100bf610 -MxResult MxThread::Start(MxS32 p_stack, MxS32 p_flag) +MxResult MxThread::Start(MxS32 p_stackSize, MxS32 p_flag) { MxResult result = FAILURE; if (m_semaphore.Init(0, 1) == SUCCESS) { if ((m_hThread = - _beginthreadex(NULL, p_stack << 2, (ThreadFunc) &MxThread::ThreadProc, this, p_flag, &m_threadId))) { + _beginthreadex(NULL, p_stackSize * 4, (ThreadFunc) &MxThread::ThreadProc, this, p_flag, &m_threadId) + )) { result = SUCCESS; } }