From 1c42fd99287adf375a171eab5a6bea645e189624 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 27 Sep 2014 16:44:21 -0400 Subject: [PATCH] SI: Fix bounds check in GetDeviceType --- Source/Core/Core/HW/SI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/SI.cpp b/Source/Core/Core/HW/SI.cpp index 610c1faaaa..582632fada 100644 --- a/Source/Core/Core/HW/SI.cpp +++ b/Source/Core/Core/HW/SI.cpp @@ -504,7 +504,7 @@ void UpdateDevices() SIDevices GetDeviceType(int channel) { - if (channel < 0 || channel > 4) + if (channel < 0 || channel > 3) return SIDEVICE_NONE; else return g_Channel[channel].m_pDevice->GetDeviceType();