mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Quick fix for an issue with dsound configuration dialog where if the default device is selected, nothing is initially selected in the combo box and on writing the configuration uninitialised memory is used for the GUID.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5316 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
ef0377b0e9
commit
aa54e28add
|
@ -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))
|
||||
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || !haveGuid && !m_devices[i].hasGuid)
|
||||
tSel = i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue