From 75a8fa73401b48d26c2d819e747b38324d6369ef Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sun, 2 Jan 2011 03:43:44 +0000 Subject: [PATCH] Fix an issue on windows where found wiimotes were not being reported as found. This fixes issue 3832. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6722 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 2df7ae216a..7aa59de077 100644 --- a/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/Src/HW/WiimoteReal/IOWin.cpp @@ -141,7 +141,7 @@ int FindWiimotes(Wiimote** wm, int max_wiimotes) bool found = false; for(int i = 0; i < MAX_WIIMOTES; i++) { - if(wm[i] && memcmp(wm[i]->devicepath, detail_data->DevicePath, 197) == 0) + if(wm[i] && strcmp(wm[i]->devicepath, detail_data->DevicePath) == 0) { found = true; break;