mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-02-01 00:24:14 -06:00
9.09 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
2fed872194
commit
1fbaf0aac5
@@ -9,7 +9,7 @@ static const int kBreakAbortThreshold = 2;
|
||||
|
||||
namespace NConsoleClose {
|
||||
|
||||
#ifndef UNDER_CE
|
||||
#if !defined(UNDER_CE) && defined(_WIN32)
|
||||
static BOOL WINAPI HandlerRoutine(DWORD ctrlType)
|
||||
{
|
||||
if (ctrlType == CTRL_LOGOFF_EVENT)
|
||||
@@ -56,7 +56,7 @@ void CheckCtrlBreak()
|
||||
|
||||
CCtrlHandlerSetter::CCtrlHandlerSetter()
|
||||
{
|
||||
#ifndef UNDER_CE
|
||||
#if !defined(UNDER_CE) && defined(_WIN32)
|
||||
if(!SetConsoleCtrlHandler(HandlerRoutine, TRUE))
|
||||
throw "SetConsoleCtrlHandler fails";
|
||||
#endif
|
||||
@@ -64,7 +64,7 @@ CCtrlHandlerSetter::CCtrlHandlerSetter()
|
||||
|
||||
CCtrlHandlerSetter::~CCtrlHandlerSetter()
|
||||
{
|
||||
#ifndef UNDER_CE
|
||||
#if !defined(UNDER_CE) && defined(_WIN32)
|
||||
if(!SetConsoleCtrlHandler(HandlerRoutine, FALSE))
|
||||
throw "SetConsoleCtrlHandler fails";
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user