diff options
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index f28a7906..f27f5c45 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -191,8 +191,9 @@ static void add_device(IMMDevice *device, DevMap *devmap) WARN("GetValue failed: 0x%08lx\n", hr); } if(SUCCEEDED(hr)) + hr = CLSIDFromString(pvguid.pwszVal, &devmap->guid); + if(SUCCEEDED(hr)) { - CLSIDFromString(pvguid.pwszVal, &devmap->guid); if((len=WideCharToMultiByte(CP_ACP, 0, pvname.pwszVal, -1, NULL, 0, NULL, NULL)) > 0) { devmap->name = calloc(1, len); |