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:
Orgad Shaneh
2012-06-06 15:03:51 +03:00
committed by Joerg Bornemann
parent a55cdd530c
commit 6147419f87

View File

@@ -120,7 +120,7 @@ int main(int argc, char **)
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if (message == uiShutDownWindowMessage) {
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);
GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, 0);
PostQuitMessage(0);
return 0;
}