diff --git a/stepmania/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp b/stepmania/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp index 578614bf6f..67f093a4e0 100644 --- a/stepmania/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp +++ b/stepmania/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp @@ -97,7 +97,9 @@ bool DIDevice::Open() /* This device doesn't support buffering, so we're forced * to use less reliable polling. */ buffered = false; - } else if ( hr != DI_OK ) { + } + else if ( hr != DI_OK ) + { LOG->Info( hr_ssprintf(hr, "OpenDevice(%s): IDirectInputDevice2::SetProperty", JoystickInst.tszProductName) ); return false; } diff --git a/stepmania/src/archutils/Win32/arch_time.cpp b/stepmania/src/archutils/Win32/arch_time.cpp index 88a3f52d7d..3d36a92719 100644 --- a/stepmania/src/archutils/Win32/arch_time.cpp +++ b/stepmania/src/archutils/Win32/arch_time.cpp @@ -26,7 +26,7 @@ struct tm *my_gmtime_r( const time_t *timep, struct tm *result ) void my_usleep( unsigned long usec ) { - Sleep( usec/1000 ); + ::Sleep( usec/1000 ); } /*