hle: kernel: Migrate KSharedMemory to KAutoObject.

This commit is contained in:
bunnei 2021-04-03 23:22:07 -07:00
parent 7a6bfbde24
commit 11f9080d2e
16 changed files with 128 additions and 114 deletions

View file

@ -225,12 +225,12 @@ ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(KThread& thread) {
// for specific values in each of these descriptors.
for (auto& object : copy_objects) {
ASSERT(object != nullptr);
dst_cmdbuf[current_offset++] = handle_table.Create(SharedFrom(object)).Unwrap();
dst_cmdbuf[current_offset++] = handle_table.Create(object).Unwrap();
}
for (auto& object : move_objects) {
ASSERT(object != nullptr);
dst_cmdbuf[current_offset++] = handle_table.Create(SharedFrom(object)).Unwrap();
dst_cmdbuf[current_offset++] = handle_table.Create(object).Unwrap();
}
}