This should fix wiimote extensions on linux. Now to figure out the windows issue, and then OSX ... Sigh!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6702 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bc78a98cbc
commit
4b3a6a6d47
|
@ -223,7 +223,7 @@ unsigned char *Wiimote::IORead()
|
||||||
|
|
||||||
// Read the pending message into the buffer
|
// Read the pending message into the buffer
|
||||||
unsigned char *buffer = new unsigned char[MAX_PAYLOAD];
|
unsigned char *buffer = new unsigned char[MAX_PAYLOAD];
|
||||||
r = read(in_sock, buffer, sizeof(buffer));
|
r = read(in_sock, buffer, sizeof(unsigned char) * MAX_PAYLOAD);
|
||||||
if (r == -1)
|
if (r == -1)
|
||||||
{
|
{
|
||||||
// Error reading data
|
// Error reading data
|
||||||
|
|
Loading…
Reference in New Issue