mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-01-31 04:03:44 +01:00
kern: fix bug in ToMessageBuffer pointer transfer selection
This commit is contained in:
parent
4a7ce9dd75
commit
3c8d8161cc
@ -88,7 +88,7 @@ namespace ams::kern {
|
|||||||
break;
|
break;
|
||||||
case ipc::MessageBuffer::MessageHeader::ReceiveListCountType_ToMessageBuffer:
|
case ipc::MessageBuffer::MessageHeader::ReceiveListCountType_ToMessageBuffer:
|
||||||
{
|
{
|
||||||
const uintptr_t buf = util::AlignUp(this->msg_buffer_end, PointerTransferBufferAlignment);
|
const uintptr_t buf = util::AlignUp(this->msg_buffer_end + key, PointerTransferBufferAlignment);
|
||||||
|
|
||||||
if ((buf < buf + size) && (buf + size <= this->msg_buffer_space_end)) {
|
if ((buf < buf + size) && (buf + size <= this->msg_buffer_space_end)) {
|
||||||
out = buf;
|
out = buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user