scbc.sat2 5 жил өмнө
parent
commit
296e23cd06

+ 2 - 1
VideoCapture/VideoCapture/IRControlWnd.cpp

@@ -318,7 +318,7 @@ void CIRControlWnd::StartIRDevice(BOOL bReStart)
 			m_wndSignalCombo.SelectString(0, Global::g_Config.use_signal.c_str());
 		}
 
-		if ( g_IsAppRunning(Global::g_Config.redratpath.c_str()))
+		if ( !g_IsAppRunning(Global::g_Config.redratpath.c_str()) )
 		{
 			if (g_StartIRApp(Global::g_Config.redratpath.c_str(), signale.c_str(), 40000))
 			{
@@ -328,6 +328,7 @@ void CIRControlWnd::StartIRDevice(BOOL bReStart)
 			{
 				TRACE("启动红老鼠进程启动失败\r");
 				AfxMessageBox("启动红老鼠进程启动失败!");
+				return 0;
 			}
 		}