service: Use ReadBufferSpan where it is trivial to do so

This commit is contained in:
ameerj 2022-12-25 13:42:32 -05:00
parent fbc375f0de
commit 7ffd624248
31 changed files with 78 additions and 77 deletions

View file

@ -152,7 +152,7 @@ void Module::Interface::ThrowFatalWithCpuContext(Kernel::HLERequestContext& ctx)
IPC::RequestParser rp(ctx);
const auto error_code = rp.Pop<Result>();
const auto fatal_type = rp.PopEnum<FatalType>();
const auto fatal_info = ctx.ReadBuffer();
const auto fatal_info = ctx.ReadBufferSpan();
FatalInfo info{};
ASSERT_MSG(fatal_info.size() == sizeof(FatalInfo), "Invalid fatal info buffer size!");