forked from qt-creator/qt-creator
ctrlc_stub: Send Ctrl-Break instead of Ctrl-C
This forces also processes initiated using 'start' to terminate Task-number: QTCREATORBUG-7455 Change-Id: I2ac7b31ebe67510dd17a2991efc30212987e967d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
committed by
Joerg Bornemann
parent
a55cdd530c
commit
6147419f87
@@ -120,7 +120,7 @@ int main(int argc, char **)
|
|||||||
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if (message == uiShutDownWindowMessage) {
|
if (message == uiShutDownWindowMessage) {
|
||||||
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);
|
GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, 0);
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user