소스 검색

重启红老鼠;

scbc.sat2 5 년 전
부모
커밋
296e23cd06
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;
 			}
 		}