Fix a bug in wiiuse that prevented a wiimote from being disconnected properly in linux. Also fixed a bug in wiiuse_set_leds on all platforms.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5819 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-07-02 15:48:42 +00:00
parent 2455037d26
commit 6cacc52ebf
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
* Note that this will not free the wiimote structure.
*/
void wiiuse_disconnect(struct wiimote_t* wm) {
if (!wm || WIIMOTE_IS_CONNECTED(wm))
if (!wm || !WIIMOTE_IS_CONNECTED(wm))
return;
close(wm->out_sock);