FIX: XAudio2: Just skip devices where GetDeviceDetails() fails and continue with the next one.

This commit is contained in:
spacy51 2008-09-04 21:16:18 +00:00
parent 3ac8ad230f
commit 19ecae92a5
1 changed files with 1 additions and 2 deletions

View File

@ -108,8 +108,7 @@ BOOL XAudio2_Config::OnInitDialog()
for( UINT32 i = 0; i < dev_count; i++ ) {
hr = xa->GetDeviceDetails( i, &dd );
if( hr != S_OK ) {
systemMessage( IDS_XAUDIO2_CANNOT_ENUMERATE_DEVICES, NULL );
break;
continue;
} else {
#ifdef _UNICODE
int id = m_combo_dev.AddString( dd.DisplayName );