From 71209d99c8702d6e321f8dd98e21182c04a6a975 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 31 Dec 2010 15:53:38 +0000 Subject: [PATCH] This may fix the extension issue on windows. Please test. Thanks BhaaL. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6703 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp index e708f5203c..bbd557ce6f 100644 --- a/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp @@ -309,7 +309,7 @@ unsigned char *Wiimote::IORead() // This needs to be done even if ReadFile fails, essential during init // Move the data over one, so we can add back in data report indicator byte (here, 0xa1) - memmove(buffer + 1, buffer, sizeof(buffer) - 1); + memmove(buffer + 1, buffer, sizeof(unsigned char) * MAX_PAYLOAD - 1); buffer[0] = 0xa1; ResetEvent(hid_overlap.hEvent);