diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-08 18:11:36 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-08 18:33:26 +0200 |
commit | 2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d (patch) | |
tree | da5cbd25dcb367559c1bf619a7438fa1e18ff600 /src/core/hle/kernel/hle_ipc.cpp | |
parent | Merge pull request #6266 from bunnei/kautoobject-refactor (diff) | |
download | yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar.gz yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar.bz2 yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar.lz yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar.xz yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.tar.zst yuzu-2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d.zip |
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.cpp')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp index b505d20a6..93907f75e 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -180,12 +180,12 @@ ResultCode HLERequestContext::PopulateFromIncomingCommandBuffer(const KHandleTab return RESULT_SUCCESS; } -ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(KThread& thread) { - auto& owner_process = *thread.GetOwnerProcess(); +ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(KThread& requesting_thread) { + auto& owner_process = *requesting_thread.GetOwnerProcess(); auto& handle_table = owner_process.GetHandleTable(); std::array<u32, IPC::COMMAND_BUFFER_LENGTH> dst_cmdbuf; - memory.ReadBlock(owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(), + memory.ReadBlock(owner_process, requesting_thread.GetTLSAddress(), dst_cmdbuf.data(), dst_cmdbuf.size() * sizeof(u32)); // The header was already built in the internal command buffer. Attempt to parse it to verify @@ -242,7 +242,7 @@ ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(KThread& thread) { } // Copy the translated command buffer back into the thread's command buffer area. - memory.WriteBlock(owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(), + memory.WriteBlock(owner_process, requesting_thread.GetTLSAddress(), dst_cmdbuf.data(), dst_cmdbuf.size() * sizeof(u32)); return RESULT_SUCCESS; |