From 394b668265e2003c1c1fe4ba8b509e4a2c9ddcfb Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 10 May 2021 08:32:20 -0400 Subject: [PATCH] cwIoTest.cpp : Fixed error handling in test(). --- cwIoTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cwIoTest.cpp b/cwIoTest.cpp index 507ed16..8464379 100644 --- a/cwIoTest.cpp +++ b/cwIoTest.cpp @@ -283,7 +283,10 @@ cw::rc_t cw::io::test( const object_t* cfg ) // unsigned devIdx = audioDeviceLabelToIndex(app.ioH, "main"); if( devIdx == kInvalidIdx ) + { cwLogError(kOpFailRC, "Unable to locate the requested audio device."); + goto errLabel; + } else { //audioDeviceEnableMeters( app.ioH, devIdx, kInFl | kOutFl | kEnableFl );