[Console] Force terminating the process

This commit is contained in:
momo5502 2017-02-12 17:15:41 +01:00
parent b1cc8c8176
commit 78b1c1a597

View File

@ -407,11 +407,7 @@ namespace Components
// We can not force the termination in this thread // We can not force the termination in this thread
// The destructor would be called in this thread // The destructor would be called in this thread
// and would try to join this thread, which is impossible // and would try to join this thread, which is impossible
std::thread([] () TerminateProcess(GetCurrentProcess(), 0xFFFFFFFF);
{
std::this_thread::sleep_for(200ms);
ExitProcess(static_cast<uint32_t>(-1));
}).detach();
} }
else else
{ {