From e8b16be85646641d80ee4cd7c5a9bda90bbbc0a4 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 12 Oct 2011 19:38:48 +0000 Subject: [PATCH] Newer versions of GCC (specifically, the one in MinGW64) don't like casting directly from a 64-bit pointer to a 32-bit integer, so we need to first cast to a 64-bit integer (remember that Windows is LLP64) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4722 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/winvnc/ControlPanel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/winvnc/ControlPanel.cxx b/win/winvnc/ControlPanel.cxx index 59bb511a..9c850d38 100644 --- a/win/winvnc/ControlPanel.cxx +++ b/win/winvnc/ControlPanel.cxx @@ -147,11 +147,11 @@ void ControlPanel::SendCommand(DWORD command, int data) ListConnStatus.Copy(&ListSelConn); ListConnStatus.setAllStatus(data); ListConnStatus.setDisable(isItemChecked(IDC_DISABLE_CLIENTS)); - copyData.cbData = (DWORD)&ListConnStatus; + copyData.cbData = (DWORD)((long long)&ListConnStatus); } else { ListConnStatus.Clear(); } - copyData.cbData = (DWORD)&ListConnStatus; + copyData.cbData = (DWORD)((long long)&ListConnStatus); SendMessage(m_hSTIcon, WM_COPYDATA, 0, (LPARAM)©Data); } -- 2.39.5