Index: media/audio/win/audio_low_latency_input_win.cc |
diff --git a/media/audio/win/audio_low_latency_input_win.cc b/media/audio/win/audio_low_latency_input_win.cc |
index c105638c7fb8b7d9e97925a0e082724031813a3d..c1c44024a446c358cde444faa579e2d3d337d031 100644 |
--- a/media/audio/win/audio_low_latency_input_win.cc |
+++ b/media/audio/win/audio_low_latency_input_win.cc |
@@ -513,8 +513,9 @@ HRESULT WASAPIAudioInputStream::SetCaptureDevice() { |
DCHECK(!endpoint_device_.Get()); |
ScopedComPtr<IMMDeviceEnumerator> enumerator; |
- HRESULT hr = enumerator.CreateInstance(__uuidof(MMDeviceEnumerator), NULL, |
- CLSCTX_INPROC_SERVER); |
+ HRESULT hr = |
+ ::CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, |
+ CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&enumerator)); |
if (FAILED(hr)) { |
open_result_ = OPEN_RESULT_CREATE_INSTANCE; |
return hr; |