aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/hid/controllers/xpad.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-24 20:27:00 -0500
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-24 20:30:25 -0600
commitf01dac3bf934657059b77bae3630201110f83e3d (patch)
tree0a451f6b23c9eed1af33fa9d3fedd67261a12c90 /src/core/hle/service/hid/controllers/xpad.cpp
parent464c4d26ac8e7af6302390684445b357e5cda4e4 (diff)
service/hid: Fix memory allocated incorrectly
Diffstat (limited to 'src/core/hle/service/hid/controllers/xpad.cpp')
-rw-r--r--src/core/hle/service/hid/controllers/xpad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/xpad.cpp b/src/core/hle/service/hid/controllers/xpad.cpp
index 29a412ff9..aa9f044f1 100644
--- a/src/core/hle/service/hid/controllers/xpad.cpp
+++ b/src/core/hle/service/hid/controllers/xpad.cpp
@@ -22,7 +22,7 @@ void Controller_XPad::OnUpdate(const Core::Timing::CoreTiming& core_timing, u8*
if (!IsControllerActivated()) {
basic_xpad_lifo.entry_count = 0;
basic_xpad_lifo.last_entry_index = 0;
- std::memcpy(data, &basic_xpad_lifo, sizeof(basic_xpad_lifo));
+ std::memcpy(data + SHARED_MEMORY_OFFSET, &basic_xpad_lifo, sizeof(basic_xpad_lifo));
return;
}