mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 19:30:15 +00:00
Return right error code in InitializeWithSdkVersion
This commit is contained in:
parent
7b226d4080
commit
fcf2d8f044
@ -684,12 +684,18 @@ static void InitializeWithSdkVersion(Service::Interface* self) {
|
||||
|
||||
self->SetVersion(cmd_buff[1]);
|
||||
|
||||
ASSERT_MSG(cmd_buff[2] == 0x20, "ProcessId Header must be 0x20");
|
||||
|
||||
if (cmd_buff[2] == IPC::CallingPidDesc()) {
|
||||
LOG_WARNING(Service_FS, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
|
||||
|
||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
}
|
||||
else {
|
||||
LOG_ERROR(Service_FS, "ProcessId Header must be 0x20");
|
||||
|
||||
cmd_buff[1] = ResultCode(ErrorDescription::OS_InvalidBufferDescriptor, ErrorModule::OS,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent).raw;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* FS_User::SetPriority service function.
|
||||
|
Loading…
Reference in New Issue
Block a user