Sfoglia il codice sorgente

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

Sam Lantinga 1 anno fa
parent
commit
fe6b3ab0b0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/core/windows/SDL_immdevice.c

+ 1 - 1
src/core/windows/SDL_immdevice.c

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