Index: media/audio/win/device_enumeration_win.cc |
diff --git a/media/audio/win/device_enumeration_win.cc b/media/audio/win/device_enumeration_win.cc |
index b3332041b68e4bee85e6de6d2a06e3cb0b919912..894b61cc7df97e4c5e957804e53f71f326687893 100644 |
--- a/media/audio/win/device_enumeration_win.cc |
+++ b/media/audio/win/device_enumeration_win.cc |
@@ -41,7 +41,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow, |
// This method will succeed even if all devices are disabled. |
ScopedComPtr<IMMDeviceCollection> collection; |
hr = enumerator->EnumAudioEndpoints(data_flow, DEVICE_STATE_ACTIVE, |
- collection.Receive()); |
+ collection.GetAddressOf()); |
if (FAILED(hr)) |
return false; |
@@ -59,7 +59,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow, |
// Retrieve unique name of endpoint device. |
// Example: "{0.0.1.00000000}.{8db6020f-18e3-4f25-b6f5-7726c9122574}". |
ScopedComPtr<IMMDevice> audio_device; |
- hr = collection->Item(i, audio_device.Receive()); |
+ hr = collection->Item(i, audio_device.GetAddressOf()); |
if (FAILED(hr)) |
continue; |
@@ -72,7 +72,7 @@ static bool GetDeviceNamesWinImpl(EDataFlow data_flow, |
// Retrieve user-friendly name of endpoint device. |
// Example: "Microphone (Realtek High Definition Audio)". |
ScopedComPtr<IPropertyStore> properties; |
- hr = audio_device->OpenPropertyStore(STGM_READ, properties.Receive()); |
+ hr = audio_device->OpenPropertyStore(STGM_READ, properties.GetAddressOf()); |
if (SUCCEEDED(hr)) { |
base::win::ScopedPropVariant friendly_name; |
hr = properties->GetValue(PKEY_Device_FriendlyName, |