From d3d4739513cca8f823cbf10e0bada4ca88fb47ed Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Tue, 3 Feb 2015 18:40:02 +0000 Subject: [PATCH] winecfg: Fix bug causing 5.1 speakers to appear as stereo. --- programs/winecfg/audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c index ca674f42b3a..6446a67b2e3 100644 --- a/programs/winecfg/audio.c +++ b/programs/winecfg/audio.c @@ -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);