Fixed warning C6031: Return value ignored: 'CLSIDFromString'.

This commit is contained in:
Sam Lantinga
2023-12-04 19:33:25 -08:00
parent f3b0149756
commit fe6b3ab0b0

View File

@@ -103,7 +103,7 @@ static void GetMMDeviceInfo(IMMDevice *device, char **utf8dev, WAVEFORMATEXTENSI
} }
PropVariantClear(&var); PropVariantClear(&var);
if (SUCCEEDED(IPropertyStore_GetValue(props, &SDL_PKEY_AudioEndpoint_GUID, &var))) { if (SUCCEEDED(IPropertyStore_GetValue(props, &SDL_PKEY_AudioEndpoint_GUID, &var))) {
CLSIDFromString(var.pwszVal, guid); (void)CLSIDFromString(var.pwszVal, guid);
} }
PropVariantClear(&var); PropVariantClear(&var);
IPropertyStore_Release(props); IPropertyStore_Release(props);