aboutsummaryrefslogtreecommitdiffstats
path: root/win/wm_hooks/wm_hooks.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:44:30 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:44:30 +0100
commit8a044ee41e175b8d6cb69dc6f38c6bc94dcb1c8d (patch)
tree686b2236c3d97135430ec21b77a92a5617006b71 /win/wm_hooks/wm_hooks.cxx
parentf10d2a7cb0bd28743971dc5edc3e3fff298fa264 (diff)
downloadtigervnc-8a044ee41e175b8d6cb69dc6f38c6bc94dcb1c8d.tar.gz
tigervnc-8a044ee41e175b8d6cb69dc6f38c6bc94dcb1c8d.zip
Pointer truncation/expansion needs to be very explicit
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);
}
}