1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-27 12:46:03 +00:00

fs.mitm: Fix pointer buffer size passed to mitm'd commands

This commit is contained in:
Michael Scire 2018-06-09 19:36:01 -06:00
parent 6a58307d83
commit 40a6b7bb54

View file

@ -108,7 +108,7 @@ class MitMSession final : public IWaitable {
rawdata_start = (u32 *)r.Raw;
retval = 0xF601;
if (r.CommandType == IpcCommandType_Request || r.CommandType == IpcCommandType_RequestWithContext) {
retval = this->service_object->dispatch(r, c, rawdata_start[2], (u8 *)this->pointer_buffer, sizeof(this->pointer_buffer));
retval = this->service_object->dispatch(r, c, rawdata_start[2], (u8 *)this->pointer_buffer, this->pointer_buffer_size);
}
/* 0xF601 --> Dispatch onwards. */