Index: remoting/host/audio_capturer_win.cc |
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc |
index c00a3f989d0397374eda541789839c70e54a2e04..b3d4d9f453983413e0533268d8dca914ab47ce6a 100644 |
--- a/remoting/host/audio_capturer_win.cc |
+++ b/remoting/host/audio_capturer_win.cc |
@@ -104,7 +104,8 @@ bool AudioCapturerWin::Initialize() { |
HRESULT hr = S_OK; |
base::win::ScopedComPtr<IMMDeviceEnumerator> mm_device_enumerator; |
- hr = mm_device_enumerator.CreateInstance(__uuidof(MMDeviceEnumerator)); |
+ hr = ::CoCreateInstance(__uuidof(MMDeviceEnumerator), nullptr, CLSCTX_ALL, |
+ IID_PPV_ARGS(&mm_device_enumerator)); |
if (FAILED(hr)) { |
LOG(ERROR) << "Failed to create IMMDeviceEnumerator. Error " << hr; |
return false; |