summaryrefslogtreecommitdiff
path: root/src/core/hle/service
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/boss/boss.cpp4
-rw-r--r--src/core/hle/service/dsp_dsp.cpp4
-rw-r--r--src/core/hle/service/fs/fs_user.cpp4
-rw-r--r--src/core/hle/service/ir/ir_user.cpp3
-rw-r--r--src/core/hle/service/srv.cpp4
5 files changed, 5 insertions, 14 deletions
diff --git a/src/core/hle/service/boss/boss.cpp b/src/core/hle/service/boss/boss.cpp
index e0de037f8..91056189a 100644
--- a/src/core/hle/service/boss/boss.cpp
+++ b/src/core/hle/service/boss/boss.cpp
@@ -24,9 +24,7 @@ void InitializeSession(Service::Interface* self) {
24 24
25 if (translation != IPC::CallingPidDesc()) { 25 if (translation != IPC::CallingPidDesc()) {
26 cmd_buff[0] = IPC::MakeHeader(0, 0x1, 0); // 0x40 26 cmd_buff[0] = IPC::MakeHeader(0, 0x1, 0); // 0x40
27 cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS, 27 cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
28 ErrorSummary::WrongArgument, ErrorLevel::Permanent)
29 .raw;
30 LOG_ERROR(Service_BOSS, "The translation was invalid, translation=0x%08X", translation); 28 LOG_ERROR(Service_BOSS, "The translation was invalid, translation=0x%08X", translation);
31 return; 29 return;
32 } 30 }
diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cpp
index 39711ea97..79171a0bc 100644
--- a/src/core/hle/service/dsp_dsp.cpp
+++ b/src/core/hle/service/dsp_dsp.cpp
@@ -289,9 +289,7 @@ static void WriteProcessPipe(Service::Interface* self) {
289 "size=0x%X, buffer=0x%08X", 289 "size=0x%X, buffer=0x%08X",
290 cmd_buff[3], pipe_index, size, buffer); 290 cmd_buff[3], pipe_index, size, buffer);
291 cmd_buff[0] = IPC::MakeHeader(0, 1, 0); 291 cmd_buff[0] = IPC::MakeHeader(0, 1, 0);
292 cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS, 292 cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
293 ErrorSummary::WrongArgument, ErrorLevel::Permanent)
294 .raw;
295 return; 293 return;
296 } 294 }
297 295
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp
index ad1aadab5..e53a970d3 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -801,9 +801,7 @@ static void InitializeWithSdkVersion(Service::Interface* self) {
801 cmd_buff[1] = RESULT_SUCCESS.raw; 801 cmd_buff[1] = RESULT_SUCCESS.raw;
802 } else { 802 } else {
803 LOG_ERROR(Service_FS, "ProcessId Header must be 0x20"); 803 LOG_ERROR(Service_FS, "ProcessId Header must be 0x20");
804 cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS, 804 cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
805 ErrorSummary::WrongArgument, ErrorLevel::Permanent)
806 .raw;
807 } 805 }
808} 806}
809 807
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) {
267 shared_memory = Kernel::g_handle_table.Get<Kernel::SharedMemory>(handle); 267 shared_memory = Kernel::g_handle_table.Get<Kernel::SharedMemory>(handle);
268 if (!shared_memory) { 268 if (!shared_memory) {
269 LOG_CRITICAL(Service_IR, "invalid shared memory handle 0x%08X", handle); 269 LOG_CRITICAL(Service_IR, "invalid shared memory handle 0x%08X", handle);
270 rb.Push(ResultCode(ErrorDescription::InvalidHandle, ErrorModule::OS, 270 rb.Push(IPC::ERR_INVALID_HANDLE);
271 ErrorSummary::WrongArgument, ErrorLevel::Permanent));
272 return; 271 return;
273 } 272 }
274 shared_memory->name = "IR_USER: shared memory"; 273 shared_memory->name = "IR_USER: shared memory";
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index 3bd787147..130c9d25e 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -30,9 +30,7 @@ static void RegisterClient(Interface* self) {
30 30
31 if (cmd_buff[1] != IPC::CallingPidDesc()) { 31 if (cmd_buff[1] != IPC::CallingPidDesc()) {
32 cmd_buff[0] = IPC::MakeHeader(0x0, 0x1, 0); // 0x40 32 cmd_buff[0] = IPC::MakeHeader(0x0, 0x1, 0); // 0x40
33 cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS, 33 cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
34 ErrorSummary::WrongArgument, ErrorLevel::Permanent)
35 .raw;
36 return; 34 return;
37 } 35 }
38 cmd_buff[0] = IPC::MakeHeader(0x1, 0x1, 0); // 0x10040 36 cmd_buff[0] = IPC::MakeHeader(0x1, 0x1, 0); // 0x10040