diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-20 20:25:59 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-20 20:25:59 +0200 |
commit | 3f842c733568aa9068aa83fad52540eb98f334b1 (patch) | |
tree | 398f9f4ac407c96c3cf00755b564fef6b84ea92b /c/common.cpp | |
parent | 0d5736538a98b2c4001c45d073affc6bc0d772e5 (diff) | |
download | EpisodeBrowser-3f842c733568aa9068aa83fad52540eb98f334b1.tar.gz |
Simplify require, prefer.
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 25ff899..4ce95a0 100644 --- a/c/common.cpp +++ b/c/common.cpp @@ -84,8 +84,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 = require<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); - require<UnhookWindowsHookEx>(hHook); + require(UnhookWindowsHookEx(hHook)); return r; } |