From 22bc951d7e3f6834058d3486e7eb4c1404121967 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Mon, 5 Feb 2018 02:03:22 -0800 Subject: Dont call UNIMPLEMENTED for 'empty services', just return error code --- src/core/hle/service/sm/sm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/hle') diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 73aa013e3..bc72512a0 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -103,6 +103,8 @@ void SM::GetService(Kernel::HLERequestContext& ctx) { rb.Push(client_port.Code()); LOG_ERROR(Service_SM, "called service=%s -> error 0x%08X", name.c_str(), client_port.Code().raw); + if (name.length() == 0) + return; // LibNX Fix UNIMPLEMENTED(); return; } -- cgit v1.2.3