Skip to content
Permalink
Browse files

Handle WM_CLOSE messages in overlay helper.

When Qt terminates a QProcess via the terminate()
method, it sends a WM_CLOSE message.

However, the overlay helper did not know of WM_CLOSE,
so it would quietly ignore it.

This commit teaches the overlay helper to exit on
WM_CLOSE.
  • Loading branch information...
mkrautz committed Feb 20, 2015
1 parent 0e358bf commit 3018c5e90a58230b56aa70b5e58d6ae06550cc1c
Showing with 5 additions and 0 deletions.
  1. +5 −0 overlay/lib.cpp
@@ -476,6 +476,11 @@ extern "C" __declspec(dllexport) int __cdecl OverlayHelperProcessMain(unsigned i
break;
}

if (msg.message == WM_CLOSE) {
retval = 0;
break;
}

TranslateMessage(&msg);
DispatchMessage(&msg);
}

0 comments on commit 3018c5e

Please sign in to comment.
You can’t perform that action at this time.