diff --git a/Source/Core/Common/Src/Thread.h b/Source/Core/Common/Src/Thread.h index 6516615932..33ab20fe36 100644 --- a/Source/Core/Common/Src/Thread.h +++ b/Source/Core/Common/Src/Thread.h @@ -141,7 +141,7 @@ void SetCurrentThreadAffinity(u32 mask); #ifdef _WIN32 Sleep(0); #elif defined(_M_IX86) || defined(_M_X64) - usleep(1); + sleep(0); #endif } diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_usb.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_usb.cpp index e361c30d53..314b3bfe5a 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_usb.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_usb.cpp @@ -533,7 +533,7 @@ u32 CWII_IPC_HLE_Device_usb_oh1_57e_305::Update() NetPlay_WiimoteUpdate(wiimote_to_update); Wiimote::Update(wiimote_to_update); } - wiimote_to_update = ++wiimote_to_update % m_WiiMotes.size(); + wiimote_to_update = (wiimote_to_update + 1) % m_WiiMotes.size(); m_last_ticks = now; }