diff options
Diffstat (limited to 'c/common.cpp')
-rw-r--r-- | c/common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/common.cpp b/c/common.cpp index b85be49..7981801 100644 --- a/c/common.cpp +++ b/c/common.cpp @@ -87,8 +87,8 @@ static LRESULT CALLBACK CBTProc(const int nCode, const WPARAM wParam, const LPAR int EBMessageBox(const TCHAR* const tszText, const TCHAR* const tszCaption, const unsigned uType) { extern HWND g_hWnd; - HHOOK hHook = throw_nil<SetWindowsHookEx>(WH_CBT, CBTProc, (HINSTANCE)NULL, GetCurrentThreadId()); + HHOOK hHook = require<SetWindowsHookEx>(WH_CBT, CBTProc, (HINSTANCE)NULL, GetCurrentThreadId()); int r = MessageBox(g_hWnd, tszText, tszCaption, uType); - throw_nil<UnhookWindowsHookEx>(hHook); + require<UnhookWindowsHookEx>(hHook); return r; } |