SPU2-X: Tweak the quick fix in the previous rev a little: also select the default device if a GUID is specified but not present in the enumeration.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5317 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1@gmail.com 2012-06-20 12:28:13 +00:00
parent aa54e28add
commit 179246a4eb
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ private:
for(int i=0;i<ndevs;i++)
{
SendMessage(GetDlgItem(hWnd,IDC_DS_DEVICE),CB_ADDSTRING,0,(LPARAM)m_devices[i].name.c_str());
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || !haveGuid && !m_devices[i].hasGuid)
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || tSel < 0 && !m_devices[i].hasGuid)
tSel = i;
}