mirror of https://github.com/PCSX2/pcsx2.git
gsdx ocl: check size of array before access
Potential fix for issue #408 ?
This commit is contained in:
parent
079ed2c7a9
commit
70ad09f6ef
|
@ -269,7 +269,9 @@ bool GSSettingsDlg::OnCommand(HWND hWnd, UINT id, UINT code)
|
|||
|
||||
if(ComboBoxGetSelData(IDC_OPENCL_DEVICE, data))
|
||||
{
|
||||
theApp.SetConfig("ocldev", m_ocl_devs[(int)data].name.c_str());
|
||||
if ((int)data < m_ocl_devs.size()) {
|
||||
theApp.SetConfig("ocldev", m_ocl_devs[(int)data].name.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
if(!m_IsOpen2 && ComboBoxGetSelData(IDC_RESOLUTION, data))
|
||||
|
|
Loading…
Reference in New Issue