win-wasapi: Catch by reference

上级 3b0238fc
......@@ -91,7 +91,7 @@ void GetWASAPIAudioDevices(vector<AudioDeviceInfo> &devices, bool input)
try {
GetWASAPIAudioDevices_(devices, input);
} catch (HRError error) {
} catch (HRError &error) {
blog(LOG_WARNING, "[GetWASAPIAudioDevices] %s: %lX", error.str,
error.hr);
}
......
......@@ -319,7 +319,7 @@ bool WASAPISource::TryInitialize()
try {
Initialize();
} catch (HRError error) {
} catch (HRError &error) {
if (previouslyFailed)
return active;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册