fix: add more cleanup events
This commit is contained in:
@@ -85,7 +85,8 @@ void cleanup()
|
||||
|
||||
BOOL WINAPI consoleHandler(DWORD dwType)
|
||||
{
|
||||
if (dwType == CTRL_C_EVENT || dwType == CTRL_CLOSE_EVENT || dwType == CTRL_LOGOFF_EVENT || dwType == CTRL_SHUTDOWN_EVENT)
|
||||
if (dwType == CTRL_C_EVENT || dwType == CTRL_CLOSE_EVENT || dwType == CTRL_LOGOFF_EVENT ||
|
||||
dwType == CTRL_SHUTDOWN_EVENT)
|
||||
{
|
||||
running = false;
|
||||
cleanup();
|
||||
|
||||
Reference in New Issue
Block a user