summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/hle_ipc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-17 08:03:23 +0200
committerGitHub <noreply@github.com>2021-04-17 08:03:23 +0200
commitd5c1f3929c3348691bda405dd2a4248773d02f2d (patch)
tree271ec5aceff2eab8214a06db0f33b0afac217f86 /src/core/hle/kernel/hle_ipc.cpp
parentMerge pull request #6201 from bunnei/remove-bintray (diff)
parentapplets/swkbd: Implement the Qt Software Keyboard frontend (diff)
downloadyuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.gz
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.bz2
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.lz
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.xz
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.zst
yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.zip
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.cpp')
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index 161d9f782..2b363b1d9 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -75,10 +75,14 @@ void HLERequestContext::ParseCommandBuffer(const HandleTable& handle_table, u32_
if (incoming) {
// Populate the object lists with the data in the IPC request.
for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_copy; ++handle) {
- copy_objects.push_back(handle_table.GetGeneric(rp.Pop<Handle>()));
+ const u32 copy_handle{rp.Pop<Handle>()};
+ copy_handles.push_back(copy_handle);
+ copy_objects.push_back(handle_table.GetGeneric(copy_handle));
}
for (u32 handle = 0; handle < handle_descriptor_header->num_handles_to_move; ++handle) {
- move_objects.push_back(handle_table.GetGeneric(rp.Pop<Handle>()));
+ const u32 move_handle{rp.Pop<Handle>()};
+ move_handles.push_back(move_handle);
+ move_objects.push_back(handle_table.GetGeneric(move_handle));
}
} else {
// For responses we just ignore the handles, they're empty and will be populated when