kern/ipc: fix bug in SendMessage

This commit is contained in:
Michael Scire 2020-07-10 16:57:11 -07:00
parent 4ff10f3ce0
commit c8f71007ec

View File

@ -844,7 +844,7 @@ namespace ams::kern {
}
/* Handle any exchange buffers. */
for (size_t i = 0; i < request->GetReceiveCount(); ++i) {
for (size_t i = 0; i < request->GetExchangeCount(); ++i) {
R_TRY(ProcessSendMessageReceiveMapping(dst_page_table, request->GetExchangeClientAddress(i), request->GetExchangeServerAddress(i), request->GetExchangeSize(i), request->GetExchangeMemoryState(i)));
}