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:
sudonim1@gmail.com 2012-06-20 12:21:44 +00:00
parent ef0377b0e9
commit aa54e28add
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))
if(haveGuid && IsEqualGUID(m_devices[i].guid,DevGuid) || !haveGuid && !m_devices[i].hasGuid)
tSel = i;
}