aboutsummaryrefslogtreecommitdiff
path: root/c/win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/win.cpp')
-rw-r--r--c/win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/win.cpp b/c/win.cpp
index 435e739..703c011 100644
--- a/c/win.cpp
+++ b/c/win.cpp
@@ -87,9 +87,9 @@ int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption,
return 0;
};
- HHOOK hHook = require(SetWindowsHookEx(WH_CBT, proc, (HINSTANCE)NULL, GetCurrentThreadId()));
+ HHOOK hHook = Require(SetWindowsHookEx(WH_CBT, proc, (HINSTANCE)NULL, GetCurrentThreadId()));
int r = MessageBox(g_hWnd, wszText, wszCaption, uType);
- require(UnhookWindowsHookEx(hHook));
+ Require(UnhookWindowsHookEx(hHook));
return r;
}