diff options
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 8b72084bf..372cafdd9 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -386,9 +386,8 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point, | |||
| 386 | 386 | ||
| 387 | if (!Memory::IsValidVirtualAddress(*owner_process, entry_point)) { | 387 | if (!Memory::IsValidVirtualAddress(*owner_process, entry_point)) { |
| 388 | LOG_ERROR(Kernel_SVC, "(name=%s): invalid entry %08x", name.c_str(), entry_point); | 388 | LOG_ERROR(Kernel_SVC, "(name=%s): invalid entry %08x", name.c_str(), entry_point); |
| 389 | // TODO: Verify error | 389 | // TODO (bunnei): Find the correct error code to use here |
| 390 | return ResultCode(ErrorDescription::InvalidAddress, ErrorModule::Kernel, | 390 | return ResultCode(-1); |
| 391 | ErrorSummary::InvalidArgument, ErrorLevel::Permanent); | ||
| 392 | } | 391 | } |
| 393 | 392 | ||
| 394 | SharedPtr<Thread> thread(new Thread); | 393 | SharedPtr<Thread> thread(new Thread); |