aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 4f31e7b..5a33405 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -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