diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-22 03:08:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-22 03:08:34 +0200 |
commit | f7ddb43b885622d4a387e364077af8ee1544fbec (patch) | |
tree | 5c926afd3056dd604680b3734b7fcb97a03c4bdb /c | |
parent | 3eb3a554e3c88c0677bd9bd3070e2f1736f4b8cf (diff) | |
download | EpisodeBrowser-f7ddb43b885622d4a387e364077af8ee1544fbec.tar.gz |
Set owner of termination message box.
If the main window exists, it is probably a good idea for the message
box to be owned by it. Otherwise, the user may continue to interact
with the main window. Of course, that could sometimes be a benefit,
but it SEEMS a bit unsafe... I might change this in the future.
Diffstat (limited to 'c')
-rw-r--r-- | c/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ void TerminateMsg(const T* sz1, const T* sz2) noexcept ss << ": " << sz2; else ss << "."; - AWFUN(T, MessageBox)((HWND)NULL, ss.str().c_str(), AWTEXT(T, "Fatal Error"), MB_ICONERROR); + AWFUN(T, MessageBox)(g_hWnd, ss.str().c_str(), AWTEXT(T, "Fatal Error"), MB_ICONERROR); } void OnTerminate() noexcept |