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
This commit is contained in:
Glenn Rice 2010-12-31 15:53:38 +00:00
parent 4b3a6a6d47
commit 71209d99c8
1 changed files with 1 additions and 1 deletions

View File

@ -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);