Пример #1
0
int BootLoader::ExitInstance()
{
	int ret=0;

	if (m_pUICore)
		m_pUICore->exitApp(&ret);

	return ret;
}
Пример #2
0
int BootLoader::ExitInstance()
{
	int ret = 0;

	if (m_pUICore)
		m_pUICore->exitApp(&ret);

	if (g_bRestart)
	{
		if (g_szArgs && strstr(g_szArgs, "-setcachedir"))
			BootLoaderUtil::StartProcess("utility.exe", g_szArgs);
		else
			BootLoaderUtil::Restart(g_szArgs);
	}

	if (m_bRetCode)
		return m_iRetCode;

	return ret;
}
Пример #3
0
int BootLoader::ExitInstance()
{
	delete m_pMainWnd;

	int ret = CWinApp::ExitInstance();

	if (m_pUICore)
		m_pUICore->exitApp(&ret);

	if (g_bRestart)
	{
		if (g_szArgs && strstr(g_szArgs, "-setcachedir"))
#ifdef DEBUG
			BootLoaderUtil::StartProcess("utility-d.exe", g_szArgs);
#else
			BootLoaderUtil::StartProcess("utility.exe", g_szArgs);
#endif
		else
			BootLoaderUtil::Restart(g_szArgs);
	}