diff options
| author | 2017-10-31 19:26:11 -0400 | |
|---|---|---|
| committer | 2017-10-31 19:26:11 -0400 | |
| commit | 34571f4d2e80a3194a3c4cb697dba674d11a35b4 (patch) | |
| tree | b2b4b70d7a5bdea95ef5d44733eedf7e6b3b7009 /src/core/hle/kernel/thread.cpp | |
| parent | externals: Update dynarmic and xbyak. (diff) | |
| download | yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.gz yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.xz yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.zip | |
hle: Use Switch formatted result codes.
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); |