summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/hid_user.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-01-11 06:43:29 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-01-30 14:47:04 +0100
commit4bb33dfc30768c536d3f0ffb980464b1ab2d25d9 (patch)
tree09f772e5283ef1302f1b29d30f3f0150dd690bf0 /src/core/hle/service/hid/hid_user.cpp
parentCommon: Fix SCOPE_EXIT to actually create unique identifiers. (diff)
downloadyuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar.gz
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar.bz2
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar.lz
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar.xz
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.tar.zst
yuzu-4bb33dfc30768c536d3f0ffb980464b1ab2d25d9.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hid_user.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid_user.cpp b/src/core/hle/service/hid/hid_user.cpp
index 3a6275707..c167927ea 100644
--- a/src/core/hle/service/hid/hid_user.cpp
+++ b/src/core/hle/service/hid/hid_user.cpp
@@ -5,6 +5,7 @@
#include "common/log.h"
#include "core/hle/hle.h"
+#include "core/hle/kernel/shared_memory.h"
#include "core/hle/service/hid/hid.h"
#include "hid_user.h"
@@ -46,7 +47,8 @@ void GetIPCHandles(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
cmd_buff[1] = 0; // No error
- cmd_buff[3] = Service::HID::g_shared_mem;
+ // TODO(yuriks): Return error from SendSyncRequest is this fails (part of IPC marshalling)
+ cmd_buff[3] = Kernel::g_handle_table.Create(Service::HID::g_shared_mem).MoveFrom();
cmd_buff[4] = Service::HID::g_event_pad_or_touch_1;
cmd_buff[5] = Service::HID::g_event_pad_or_touch_2;
cmd_buff[6] = Service::HID::g_event_accelerometer;