Return right error code in InitializeWithSdkVersion

This commit is contained in:
mailwl 2016-05-20 09:45:34 +03:00
parent 7b226d4080
commit fcf2d8f044

View File

@ -684,12 +684,18 @@ static void InitializeWithSdkVersion(Service::Interface* self) {
self->SetVersion(cmd_buff[1]); 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]); LOG_WARNING(Service_FS, "(STUBBED) called, version: 0x%08X", cmd_buff[1]);
cmd_buff[1] = RESULT_SUCCESS.raw; 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. * FS_User::SetPriority service function.