From 355d7739162140c558ef3b548da7eea1dc0e5279 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 20 Dec 2005 20:17:56 +0000 Subject: [PATCH] fix warning --- stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp index 87c03d524d..e5b470b1cf 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_DirectInput.cpp @@ -69,10 +69,10 @@ static void CheckForDirectInputDebugMode() static int GetNumUsbHidDevices() { - int i = 0; - bool b = RegistryAccess::GetRegValue( "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HidUsb\\Enum", "Count", i ); // The "Enum" key doesn't exist if no hid devices are attached, so it's expected that GetRegValue will sometimes fail. // TODO: Does this work in Win98 and Win2K? + int i = 0; + RegistryAccess::GetRegValue( "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\HidUsb\\Enum", "Count", i ); return i; }