ams: use R_SUCCEED, R_THROW globally

This commit is contained in:
Michael Scire 2022-03-26 00:14:36 -07:00
parent e5b1739f65
commit dd78ede99f
370 changed files with 2107 additions and 2107 deletions

View file

@ -63,7 +63,7 @@ namespace ams::spl {
Result GetAesKeySlotAvailableEvent(sf::OutCopyHandle out_hnd) {
out_hnd.SetValue(m_manager.GetAesKeySlotAvailableEvent()->GetReadableHandle(), false);
return ResultSuccess();
R_SUCCEED();
}
};
static_assert(spl::impl::IsICryptoInterface<CryptoService>);

View file

@ -129,7 +129,7 @@ namespace ams::spl {
Result GetAesKeySlotAvailableEvent(sf::OutCopyHandle out_hnd) {
out_hnd.SetValue(m_manager.GetAesKeySlotAvailableEvent()->GetReadableHandle(), false);
return ResultSuccess();
R_SUCCEED();
}
Result SetBootReason(BootReasonValue boot_reason) {

View file

@ -145,7 +145,7 @@ namespace ams::spl {
m_aes_keyslot_owners[index] = owner;
*out_keyslot = keyslot;
return ResultSuccess();
R_SUCCEED();
}
Result SecureMonitorManager::DeallocateAesKeySlot(s32 keyslot, const void *owner) {
@ -190,7 +190,7 @@ namespace ams::spl {
if (out_index != nullptr) {
*out_index = index;
}
return ResultSuccess();
R_SUCCEED();
}