1
0
Fork 0
forked from suyu/suyu

Merge pull request #164 from ogniK5377/libnx_sm_fix

Don't call UNIMPLEMENTED for 'empty services', just return error code
This commit is contained in:
bunnei 2018-02-05 14:01:46 -08:00 committed by GitHub
commit 294b2b2c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}