citra-emu
/
citra
Archived
1
0
Fork 0

Merge pull request #5626 from zhaowenlan1779/deliver-arg-fix

service/apt: Fix deliver arg hmac size
This commit is contained in:
Pengfei Zhu 2020-12-05 06:49:53 +08:00 committed by GitHub
commit 7ae0fc7338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ void Module::APTInterface::ReceiveDeliverArg(Kernel::HLERequestContext& ctx) {
auto arg = apt->applet_manager->ReceiveDeliverArg().value_or(AppletManager::DeliverArg{}); auto arg = apt->applet_manager->ReceiveDeliverArg().value_or(AppletManager::DeliverArg{});
arg.param.resize(param_size); arg.param.resize(param_size);
arg.hmac.resize(std::max<std::size_t>(hmac_size, 0x20)); arg.hmac.resize(std::min<std::size_t>(hmac_size, 0x20));
IPC::RequestBuilder rb = rp.MakeBuilder(4, 4); IPC::RequestBuilder rb = rp.MakeBuilder(4, 4);
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);