src/audio/wasapi/SDL_wasapi_win32.c
changeset 13838 02e41b30186f
parent 13696 ea20a7434b98
equal deleted inserted replaced
13837:c18c3084bd77 13838:02e41b30186f
   245 
   245 
   246     if (FAILED(WIN_CoInitialize())) {
   246     if (FAILED(WIN_CoInitialize())) {
   247         return SDL_SetError("WASAPI: CoInitialize() failed");
   247         return SDL_SetError("WASAPI: CoInitialize() failed");
   248     }
   248     }
   249 
   249 
   250     ret = CoCreateInstance(&SDL_CLSID_MMDeviceEnumerator, NULL, CLSCTX_INPROC_SERVER, &SDL_IID_IMMDeviceEnumerator, (LPVOID) &enumerator);
   250     ret = CoCreateInstance(&SDL_CLSID_MMDeviceEnumerator, NULL, CLSCTX_INPROC_SERVER, &SDL_IID_IMMDeviceEnumerator, (LPVOID *) &enumerator);
   251     if (FAILED(ret)) {
   251     if (FAILED(ret)) {
   252         WIN_CoUninitialize();
   252         WIN_CoUninitialize();
   253         return WIN_SetErrorFromHRESULT("WASAPI CoCreateInstance(MMDeviceEnumerator)", ret);
   253         return WIN_SetErrorFromHRESULT("WASAPI CoCreateInstance(MMDeviceEnumerator)", ret);
   254     }
   254     }
   255 
   255