MinGW: treat Ctrl+Break as Ctrl+C.

This commit is contained in:
Daniel Beer 2012-10-04 14:50:25 +12:00
parent e4f582b0d7
commit 6455164138
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static CRITICAL_SECTION ctrlc_cs;
static WINAPI BOOL ctrlc_handler(DWORD event) static WINAPI BOOL ctrlc_handler(DWORD event)
{ {
if (event == CTRL_C_EVENT) { if ((event == CTRL_C_EVENT) || (event == CTRL_BREAK_EVENT)) {
EnterCriticalSection(&ctrlc_cs); EnterCriticalSection(&ctrlc_cs);
ctrlc_flag = 1; ctrlc_flag = 1;
LeaveCriticalSection(&ctrlc_cs); LeaveCriticalSection(&ctrlc_cs);