Commit 63bda172 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DirectSound: only list usable devices

Ref #9104
parent 3581f863
...@@ -765,7 +765,8 @@ static int CALLBACK DeviceEnumCallback( LPGUID guid, LPCWSTR desc, ...@@ -765,7 +765,8 @@ static int CALLBACK DeviceEnumCallback( LPGUID guid, LPCWSTR desc,
ds_list_t *list = data; ds_list_t *list = data;
OLECHAR buf[48]; OLECHAR buf[48];
StringFromGUID2( guid, buf, 48 ); if( StringFromGUID2( guid, buf, 48 ) <= 0 )
return true;
list->count++; list->count++;
list->ids = xrealloc( list->ids, list->count * sizeof(char *) ); list->ids = xrealloc( list->ids, list->count * sizeof(char *) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment