Index: media/audio/win/audio_manager_win.cc |
diff --git a/media/audio/win/audio_manager_win.cc b/media/audio/win/audio_manager_win.cc |
index dee14c5a149a1fc693db0a582245d03c99b25829..0c896d128eefd9c4bb24cb8ee8c79619687936d5 100644 |
--- a/media/audio/win/audio_manager_win.cc |
+++ b/media/audio/win/audio_manager_win.cc |
@@ -177,6 +177,9 @@ string16 AudioManagerWin::GetAudioInputDeviceModel() { |
waveInMessage(reinterpret_cast<HWAVEIN>(device_id), |
DRV_QUERYDEVICEINTERFACESIZE, |
reinterpret_cast<DWORD_PTR>(&device_interface_name_size), 0); |
+ if (device_interface_name_size == 0) // No audio capture device? |
+ return string16(); |
+ |
string16 device_interface_name; |
string16::value_type* name_ptr = WriteInto(&device_interface_name, |
device_interface_name_size / sizeof(string16::value_type)); |