diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-10-12 19:38:48 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-10-12 19:38:48 +0000 |
commit | e8b16be85646641d80ee4cd7c5a9bda90bbbc0a4 (patch) | |
tree | 875d2b981d03ea9ebba3bddc5f10c9303389c4fd /win | |
parent | 83ca5ec408c3110a231dd6502c9d6a2e5e6a2098 (diff) | |
download | tigervnc-e8b16be85646641d80ee4cd7c5a9bda90bbbc0a4.tar.gz tigervnc-e8b16be85646641d80ee4cd7c5a9bda90bbbc0a4.zip |
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
Diffstat (limited to 'win')
-rw-r--r-- | win/winvnc/ControlPanel.cxx | 4 |
1 files 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); } |