aboutsummaryrefslogtreecommitdiffstats
path: root/win/wm_hooks/wm_hooks.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/wm_hooks/wm_hooks.cxx')
-rw-r--r--win/wm_hooks/wm_hooks.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/wm_hooks/wm_hooks.cxx b/win/wm_hooks/wm_hooks.cxx
index 50a981e8..c0350cd2 100644
--- a/win/wm_hooks/wm_hooks.cxx
+++ b/win/wm_hooks/wm_hooks.cxx
@@ -204,11 +204,11 @@ void ProcessWindowMessage(UINT msg, HWND wnd, WPARAM wParam, LPARAM lParam) {
// Handle pop-up menus having items selected
case 485:
{
- HANDLE prop = GetProp(wnd, (LPCTSTR) MAKELONG(ATOM_Popup_Selection, 0));
+ HANDLE prop = GetProp(wnd, (LPCTSTR) (intptr_t) ATOM_Popup_Selection);
if (prop != (HANDLE) wParam) {
NotifyWindow(wnd, 485);
SetProp(wnd,
- (LPCTSTR) MAKELONG(ATOM_Popup_Selection, 0),
+ (LPCTSTR) (intptr_t) ATOM_Popup_Selection,
(HANDLE) wParam);
}
}