Skip to content
Snippets Groups Projects
Commit 6147419f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Joerg Bornemann
Browse files

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: default avatarJoerg Bornemann <joerg.bornemann@nokia.com>
parent a55cdd53
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ int main(int argc, char **) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment