mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
Use ::TerminateProcess() instead of ::exit()
This commit is contained in:
parent
aa1e928c79
commit
f76244f700
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user