aboutsummaryrefslogtreecommitdiff
path: root/c/common.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
commit3f842c733568aa9068aa83fad52540eb98f334b1 (patch)
tree398f9f4ac407c96c3cf00755b564fef6b84ea92b /c/common.cpp
parent0d5736538a98b2c4001c45d073affc6bc0d772e5 (diff)
downloadEpisodeBrowser-3f842c733568aa9068aa83fad52540eb98f334b1.tar.gz
Simplify require, prefer.
Diffstat (limited to 'c/common.cpp')
-rw-r--r--c/common.cpp4
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;
}