Use ::TerminateProcess() instead of ::exit()

This commit is contained in:
Alexander Karatarakis 2017-08-30 23:32:41 -07:00
parent aa1e928c79
commit f76244f700

View File

@ -20,7 +20,9 @@ namespace vcpkg::Checks
SetConsoleCP(GlobalState::g_init_console_cp);
SetConsoleOutputCP(GlobalState::g_init_console_output_cp);
::exit(exit_code);
fflush(nullptr);
::TerminateProcess(::GetCurrentProcess(), exit_code);
}
static BOOL CtrlHandler(DWORD fdwCtrlType)