winecfg: Fix bug causing 5.1 speakers to appear as stereo.

This commit is contained in:
Mark Harmstone 2015-02-03 18:40:02 +00:00 committed by Alexandre Julliard
parent b0632af980
commit d3d4739513
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ static BOOL load_device(IMMDevice *dev, struct DeviceInfo *info)
hr = IPropertyStore_GetValue(ps,
&PKEY_AudioEndpoint_PhysicalSpeakers, &pv);
info->speaker_config = 0;
info->speaker_config = -1;
if(SUCCEEDED(hr) && pv.vt == VT_UI4){
i = 0;
while (speaker_configs[i].text_id != 0) {
@ -135,7 +135,7 @@ static BOOL load_device(IMMDevice *dev, struct DeviceInfo *info)
}
/* fallback to stereo */
if(info->speaker_config == 0)
if(info->speaker_config == -1)
info->speaker_config = 2;
IPropertyStore_Release(ps);