]> source.dussan.org Git - tigervnc.git/commitdiff
Newer versions of GCC (specifically, the one in MinGW64) don't like casting directly...
authorDRC <dcommander@users.sourceforge.net>
Wed, 12 Oct 2011 19:38:48 +0000 (19:38 +0000)
committerDRC <dcommander@users.sourceforge.net>
Wed, 12 Oct 2011 19:38:48 +0000 (19:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4722 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/winvnc/ControlPanel.cxx

index 59bb511aef8288a476a25ffea96c718163ce7d6a..9c850d381cdcb435ff26059dfa32e49232cb8163 100644 (file)
@@ -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)&copyData);
 }