Commit d3d47395 authored by Mark Harmstone's avatar Mark Harmstone Committed by Alexandre Julliard

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

parent b0632af9
......@@ -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);
......
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