libstrat: remove remaining IPC magic numbers

This commit is contained in:
Michael Scire 2019-03-28 22:44:49 -07:00
parent 1034e0744a
commit 5be736876c
2 changed files with 4 additions and 2 deletions

View File

@ -576,7 +576,7 @@ constexpr Result WrapIpcCommandImpl(IpcResponseContext *ctx) {
Result rc = Validator::Validate<CommandMetaData>(ctx);
if (R_FAILED(rc)) {
return 0xAAEE;
return rc;
}
ClassType *this_ptr = nullptr;
@ -586,7 +586,7 @@ constexpr Result WrapIpcCommandImpl(IpcResponseContext *ctx) {
this_ptr = ctx->obj_holder->GetServiceObject<ClassType>();
}
if (this_ptr == nullptr) {
return 0xBBEE;
return ResultServiceFrameworkTargetNotFound;
}
std::shared_ptr<IServiceObject> out_objects[CommandMetaData::NumOutSessions];

View File

@ -19,6 +19,8 @@
static constexpr u32 Module_ServiceFramework = 10;
static constexpr Result ResultServiceFrameworkTargetNotFound = MAKERESULT(Module_ServiceFramework, 261);
static constexpr Result ResultServiceFrameworkOutOfDomainEntries = MAKERESULT(Module_ServiceFramework, 301);