Explorar o código

重启红老鼠;

scbc.sat2 %!s(int64=5) %!d(string=hai) anos
pai
achega
296e23cd06
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      VideoCapture/VideoCapture/IRControlWnd.cpp

+ 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;
 			}
 		}