Fix silly bug caused when fixing another silly bug in f528774b39

This commit is contained in:
Henrik Rydgård committed 2013-07-16 09:49:07 +02:00
1 parent 8689fd290f
commit c89614d180
1 file changed
+1 -3
+1 -3
View File
@@ -915,8 +915,6 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
u32 argpAddr = param.argp;
param_argp = new u8[param.args];
Memory::Memcpy(param_argp, argpAddr, param.args);
} else {
param.argp = NULL;
}
if (param.keyp != 0) {
u32 keyAddr = param.keyp;
@@ -993,7 +991,7 @@ bool __KernelLoadExec(const char *filename, u32 paramPtr, std::string *error_str
option.stacksize = module->nm.module_start_thread_stacksize;
if (paramPtr)
__KernelStartModule(module, param.args, (const char*)param.argp, &option);
__KernelStartModule(module, param.args, (const char*)param_argp, &option);
else
__KernelStartModule(module, (u32)strlen(filename) + 1, filename, &option);