MinGW: treat Ctrl+Break as Ctrl+C.
This commit is contained in:
parent
e4f582b0d7
commit
6455164138
|
@ -40,7 +40,7 @@ static CRITICAL_SECTION ctrlc_cs;
|
|||
|
||||
static WINAPI BOOL ctrlc_handler(DWORD event)
|
||||
{
|
||||
if (event == CTRL_C_EVENT) {
|
||||
if ((event == CTRL_C_EVENT) || (event == CTRL_BREAK_EVENT)) {
|
||||
EnterCriticalSection(&ctrlc_cs);
|
||||
ctrlc_flag = 1;
|
||||
LeaveCriticalSection(&ctrlc_cs);
|
||||
|
|
Loading…
Reference in New Issue