aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ir/ir_user.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-21 00:11:36 -0700
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-24 21:06:00 -0700
commit2cdb40d709f2a5d4f7f3159d4c6d80fe7905b4f3 (patch)
tree7d6d61465f7a4cb6bbb68902301e1ca92f5a76a5 /src/core/hle/service/ir/ir_user.cpp
parent743d18f0e463aa25af53ceaa25231800453810ea (diff)
Kernel: Centralize error definitions in errors.h
Diffstat (limited to 'src/core/hle/service/ir/ir_user.cpp')
-rw-r--r--src/core/hle/service/ir/ir_user.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/ir/ir_user.cpp b/src/core/hle/service/ir/ir_user.cpp
index 226af0083..369115f09 100644
--- a/src/core/hle/service/ir/ir_user.cpp
+++ b/src/core/hle/service/ir/ir_user.cpp
@@ -267,8 +267,7 @@ static void InitializeIrNopShared(Interface* self) {
shared_memory = Kernel::g_handle_table.Get<Kernel::SharedMemory>(handle);
if (!shared_memory) {
LOG_CRITICAL(Service_IR, "invalid shared memory handle 0x%08X", handle);
- rb.Push(ResultCode(ErrorDescription::InvalidHandle, ErrorModule::OS,
- ErrorSummary::WrongArgument, ErrorLevel::Permanent));
+ rb.Push(IPC::ERR_INVALID_HANDLE);
return;
}
shared_memory->name = "IR_USER: shared memory";