diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index abc61d080b..1863dd3061 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -902,11 +902,11 @@ void sceKernelStartModule(u32 moduleId, u32 argsize, u32 argAddr, u32 returnValu int priority = 0x20; int stackSize = 0x40000; - if ((optionAddr) && (smoption.stacksize > 0)) { - stackSize = smoption.stacksize; - } else if (module->nm.module_start_thread_stacksize > 0) { - stackSize = module->nm.module_start_thread_stacksize; - } + if ((optionAddr) && (smoption.stacksize > 0)) { + stackSize = smoption.stacksize; + } else if (module->nm.module_start_thread_stacksize > 0) { + stackSize = module->nm.module_start_thread_stacksize; + } if (optionAddr) {