Ticket #11618: x64_build.patch
File x64_build.patch, 13.3 KB (added by , 6 years ago) |
---|
-
Interface/GroupsDlg.cpp
159 159 m_insideSelchange = false; 160 160 if (m_oldgroup != LB_ERR) 161 161 { 162 intoldindex = m_cGrouplist.GetItemData(m_oldgroup);162 DWORD_PTR oldindex = m_cGrouplist.GetItemData(m_oldgroup); 163 163 VERIFY(m_pGeneralPage->SaveGroup(&m_GroupsList[oldindex])); 164 164 VERIFY(m_pSpeedLimitPage->SaveGroup(&m_GroupsList[oldindex])); 165 165 VERIFY(m_pSharedFoldersPage->SaveGroup(&m_GroupsList[oldindex])); … … 169 169 if (nItem != LB_ERR) 170 170 { 171 171 m_oldgroup = nItem; 172 intindex = m_cGrouplist.GetItemData(nItem);172 DWORD_PTR index = m_cGrouplist.GetItemData(nItem); 173 173 VERIFY(m_pGeneralPage->DisplayGroup(&m_GroupsList[index])); 174 174 VERIFY(m_pSpeedLimitPage->DisplayGroup(&m_GroupsList[index])); 175 175 VERIFY(m_pSharedFoldersPage->DisplayGroup(&m_GroupsList[index])); … … 270 270 if (pos == LB_ERR) { 271 271 return; 272 272 } 273 intindex = m_cGrouplist.GetItemData(pos);273 DWORD_PTR index = m_cGrouplist.GetItemData(pos); 274 274 275 275 CEnterSomething dlg(IDS_COPYGROUPDIALOG); 276 276 if (dlg.DoModal() == IDOK) { … … 308 308 if (pos == LB_ERR) { 309 309 return; 310 310 } 311 intindex = m_cGrouplist.GetItemData(pos);311 DWORD_PTR index = m_cGrouplist.GetItemData(pos); 312 312 m_oldgroup = LB_ERR; 313 313 314 314 unsigned int i = 0; … … 355 355 } 356 356 for (i = 0; i < (unsigned int)m_cGrouplist.GetCount(); i++) 357 357 { 358 intdata = m_cGrouplist.GetItemData(i);358 DWORD_PTR data = m_cGrouplist.GetItemData(i); 359 359 if (data > index) 360 360 m_cGrouplist.SetItemData(i, data-1); 361 361 } … … 371 371 int pos=m_cGrouplist.GetCurSel(); 372 372 if (pos==LB_ERR) 373 373 return; 374 intindex=m_cGrouplist.GetItemData(pos);374 DWORD_PTR index=m_cGrouplist.GetItemData(pos); 375 375 376 376 CEnterSomething dlg(IDS_INPUTDIALOGTEXT_RENAME); 377 377 if (dlg.DoModal()==IDOK) -
Interface/GroupsDlgSharedFolders.cpp
201 201 if (m_cDirs.GetNextSelectedItem(selpos)!=nItem) 202 202 return; 203 203 } 204 intindex = pNMListView->lParam;204 DWORD_PTR index = pNMListView->lParam; 205 205 if (nItem != -1) 206 206 { 207 207 m_bFilesRead = pGroup->permissions[index].bFileRead; … … 234 234 if (selpos) 235 235 { 236 236 int item = m_cDirs.GetNextSelectedItem(selpos); 237 intindex = m_cDirs.GetItemData(item);237 DWORD_PTR index = m_cDirs.GetItemData(item); 238 238 pGroup->permissions[index].bFileRead = m_bFilesRead; 239 239 pGroup->permissions[index].bFileWrite = m_bFilesWrite; 240 240 pGroup->permissions[index].bFileDelete = m_bFilesDelete; … … 350 350 if (!selpos) 351 351 return; 352 352 int nItem=m_cDirs.GetNextSelectedItem(selpos); 353 intindex=m_cDirs.GetItemData(nItem);353 DWORD_PTR index=m_cDirs.GetItemData(nItem); 354 354 m_cDirs.DeleteItem(nItem); 355 355 int i=0; 356 356 for (std::vector<t_directory>::iterator iter=pGroup->permissions.begin(); iter != pGroup->permissions.end(); iter++, i++) … … 361 361 } 362 362 for (i = 0; i < m_cDirs.GetItemCount(); i++) 363 363 { 364 intdata = m_cDirs.GetItemData(i);364 DWORD_PTR data = m_cDirs.GetItemData(i); 365 365 if (data > index) 366 366 { 367 367 m_cDirs.SetItemData(i, data - 1); … … 408 408 pGroup->permissions[item.lParam].bIsHome=0; 409 409 m_cDirs.SetItem(&item); 410 410 } 411 intindex = m_cDirs.GetItemData(nItem);411 DWORD_PTR index = m_cDirs.GetItemData(nItem); 412 412 pGroup->permissions[index].bIsHome = 1; 413 413 } 414 414 … … 465 465 if (!selpos) 466 466 return; 467 467 int nItem = m_cDirs.GetNextSelectedItem(selpos); 468 intindex = m_cDirs.GetItemData(nItem);468 DWORD_PTR index = m_cDirs.GetItemData(nItem); 469 469 470 470 if (!pItemActivate || !pItemActivate->iSubItem) 471 471 { … … 585 585 if (selpos) 586 586 { 587 587 int item = m_cDirs.GetNextSelectedItem(selpos); 588 intindex = m_cDirs.GetItemData(item);588 DWORD_PTR index = m_cDirs.GetItemData(item); 589 589 pGroup->permissions[index].bFileRead = m_bFilesRead; 590 590 pGroup->permissions[index].bFileWrite = m_bFilesWrite; 591 591 pGroup->permissions[index].bFileDelete = m_bFilesDelete; … … 609 609 if (!selpos) 610 610 return; 611 611 int nItem = m_cDirs.GetNextSelectedItem(selpos); 612 intindex = m_cDirs.GetItemData(nItem);612 DWORD_PTR index = m_cDirs.GetItemData(nItem); 613 613 614 614 if (pGroup->permissions[index].bIsHome) 615 615 { -
Interface/misc/BrowseForFolder.cpp
24 24 SetRoot(pidl); 25 25 SetTitle(nTitleID); 26 26 m_bi.lpfn = BrowseCallbackProc; 27 m_bi.lParam = reinterpret_cast< long>(this);27 m_bi.lParam = reinterpret_cast<LPARAM>(this); 28 28 m_bi.pszDisplayName = m_szSelected; 29 29 m_szSelected[0] = 0; 30 30 } … … 36 36 SetRoot(pidl); 37 37 SetTitle(strTitle); 38 38 m_bi.lpfn = BrowseCallbackProc; 39 m_bi.lParam = reinterpret_cast< long>(this);39 m_bi.lParam = reinterpret_cast<LPARAM>(this); 40 40 m_bi.pszDisplayName = m_szSelected; 41 41 m_szSelected[0] = 0; 42 42 } … … 160 160 if (m_hwnd == NULL) 161 161 return; 162 162 163 (void)SendMessage(m_hwnd, BFFM_SETSELECTION, FALSE, reinterpret_cast< long>(pidl));163 (void)SendMessage(m_hwnd, BFFM_SETSELECTION, FALSE, reinterpret_cast<LPARAM>(pidl)); 164 164 } 165 165 166 166 void CBrowseForFolder::SetSelection(const CString& strPath) const … … 168 168 if (m_hwnd == NULL) 169 169 return; 170 170 171 (void)SendMessage(m_hwnd, BFFM_SETSELECTION, TRUE, reinterpret_cast< long>(LPCTSTR(strPath)));171 (void)SendMessage(m_hwnd, BFFM_SETSELECTION, TRUE, reinterpret_cast<LPARAM>(LPCTSTR(strPath))); 172 172 } 173 173 174 174 void CBrowseForFolder::SetStatusText(const CString& strText) const … … 179 179 CString oPathString = FormatLongPath(strText); 180 180 181 181 (void)SendMessage(m_hwnd, BFFM_SETSTATUSTEXT, NULL, 182 reinterpret_cast< long>(LPCTSTR(oPathString/*strText*/)));182 reinterpret_cast<LPARAM>(LPCTSTR(oPathString/*strText*/))); 183 183 } 184 184 185 185 int __stdcall CBrowseForFolder::BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) -
Interface/misc/SAPrefsDialog.cpp
195 195 tvi.hInsertAfter = TVI_LAST; 196 196 tvi.item.cchTextMax = 0; 197 197 tvi.item.pszText = LPSTR_TEXTCALLBACK; 198 tvi.item.lParam = ( long)pPS;198 tvi.item.lParam = (LPARAM)pPS; 199 199 tvi.item.mask = TVIF_PARAM | TVIF_TEXT; 200 200 201 201 HTREEITEM hTree = m_pageTree.InsertItem(&tvi); … … 204 204 // keep track of the dlg's we've added (for parent selection) 205 205 if (hTree) 206 206 { 207 DWORD dwTree = (DWORD)hTree;207 LPBYTE dwTree = (LPBYTE)hTree; 208 208 m_dlgMap[pPS->pDlg]=dwTree; 209 209 } 210 210 } … … 261 261 } 262 262 else 263 263 { 264 std::map<CSAPrefsSubDlg *, DWORD>::iterator iter=m_dlgMap.find(pParent);264 std::map<CSAPrefsSubDlg *, LPBYTE>::iterator iter=m_dlgMap.find(pParent); 265 265 if (iter!=m_dlgMap.end()) 266 266 return (HTREEITEM)iter->second; 267 267 else … … 602 602 nm.code=PSN_HELP; 603 603 nm.hwndFrom=m_hWnd; 604 604 nm.idFrom=CSAPrefsDialog::IDD; 605 pPS->pDlg->SendMessage(WM_NOTIFY, 0, ( long)&nm);605 pPS->pDlg->SendMessage(WM_NOTIFY, 0, (LPARAM)&nm); 606 606 } 607 607 } 608 608 } -
Interface/misc/SAPrefsDialog.h
131 131 // store info about *pDlgs that have been added to 132 132 // the tree - used for quick lookup of parent nodes 133 133 // DWORDs are used because HTREEITEMs can't be... blame Microsoft 134 std::map<CSAPrefsSubDlg *, DWORD> m_dlgMap;134 std::map<CSAPrefsSubDlg *, LPBYTE> m_dlgMap; 135 135 }; 136 136 137 137 //{{AFX_INSERT_LOCATION}} -
Interface/OptionsDlg.cpp
358 358 case 0: 359 359 { 360 360 auto utf8 = fz::to_utf8(GetOption(i + 1)); 361 int slen = utf8.size();361 size_t slen = utf8.size(); 362 362 *p++ = ((slen / 256) / 256) & 0xffu; 363 363 *p++ = (slen / 256) & 0xffu; 364 364 *p++ = slen % 256; -
Interface/StatusCtrl.cpp
491 491 void CStatusCtrl::DoStreamIn(int extraFlags) 492 492 { 493 493 EDITSTREAM es; 494 es.dwCookie = (DWORD )this; // Pass a pointer to the CString to the callback function494 es.dwCookie = (DWORD_PTR)this; // Pass a pointer to the CString to the callback function 495 495 es.pfnCallback = RichEditStreamInCallback; // Specify the pointer to the callback function. 496 496 497 497 StreamIn(extraFlags | SF_RTF, es); // Perform the streaming -
Interface/UsersDlg.cpp
159 159 m_insideSelchange = false; 160 160 161 161 if (m_olduser != LB_ERR) { 162 intoldindex = m_cUserlist.GetItemData(m_olduser);162 DWORD_PTR oldindex = m_cUserlist.GetItemData(m_olduser); 163 163 t_user & user = m_UsersList[oldindex]; 164 164 SaveUser(user); 165 165 } … … 166 166 int nItem = m_cUserlist.GetCurSel(); 167 167 if (nItem != LB_ERR) { 168 168 m_olduser = nItem; 169 intindex = m_cUserlist.GetItemData(nItem);169 DWORD_PTR index = m_cUserlist.GetItemData(nItem); 170 170 VERIFY(m_pGeneralPage->DisplayUser(&m_UsersList[index])); 171 171 VERIFY(m_pSpeedLimitPage->DisplayUser(&m_UsersList[index])); 172 172 VERIFY(m_pSharedFoldersPage->DisplayUser(&m_UsersList[index])); … … 277 277 int pos = m_cUserlist.GetCurSel(); 278 278 if (pos == LB_ERR) 279 279 return; 280 intindex = m_cUserlist.GetItemData(pos);280 DWORD_PTR index = m_cUserlist.GetItemData(pos); 281 281 282 282 SaveUser(m_UsersList[index]); 283 283 … … 316 316 int pos = m_cUserlist.GetCurSel(); 317 317 if (pos == LB_ERR) 318 318 return; 319 intindex = m_cUserlist.GetItemData(pos);319 DWORD_PTR index = m_cUserlist.GetItemData(pos); 320 320 m_olduser = LB_ERR; 321 321 int i = 0; 322 322 for (t_UsersList::iterator iter = m_UsersList.begin(); iter != m_UsersList.end(); ++iter, ++i) { … … 326 326 } 327 327 } 328 328 for (i = 0; i < m_cUserlist.GetCount(); ++i) { 329 intdata = m_cUserlist.GetItemData(i);329 DWORD_PTR data = m_cUserlist.GetItemData(i); 330 330 if (data > index) 331 331 m_cUserlist.SetItemData(i, data - 1); 332 332 } … … 342 342 int pos = m_cUserlist.GetCurSel(); 343 343 if (pos == LB_ERR) 344 344 return; 345 intindex = m_cUserlist.GetItemData(pos);345 DWORD_PTR index = m_cUserlist.GetItemData(pos); 346 346 347 347 CEnterSomething dlg(IDS_INPUTDIALOGTEXT_RENAME); 348 348 if (dlg.DoModal() == IDOK) { -
Interface/UsersDlgSharedFolders.cpp
242 242 if (m_cDirs.GetNextSelectedItem(selpos) != nItem) 243 243 return; 244 244 } 245 intindex=pNMListView->lParam;245 DWORD_PTR index=pNMListView->lParam; 246 246 if (nItem!=-1) 247 247 { 248 248 m_bFilesRead = pUser->permissions[index].bFileRead; … … 272 272 if (selpos) 273 273 { 274 274 int item = m_cDirs.GetNextSelectedItem(selpos); 275 intindex = m_cDirs.GetItemData(item);275 DWORD_PTR index = m_cDirs.GetItemData(item); 276 276 pUser->permissions[index].bFileRead = m_bFilesRead; 277 277 pUser->permissions[index].bFileWrite = m_bFilesWrite; 278 278 pUser->permissions[index].bFileDelete = m_bFilesDelete; … … 386 386 if (!selpos) 387 387 return; 388 388 int nItem = m_cDirs.GetNextSelectedItem(selpos); 389 intindex = m_cDirs.GetItemData(nItem);389 DWORD_PTR index = m_cDirs.GetItemData(nItem); 390 390 m_cDirs.DeleteItem(nItem); 391 391 int i = 0; 392 392 for (std::vector<t_directory>::iterator iter = pUser->permissions.begin(); iter != pUser->permissions.end(); ++iter, ++i) … … 397 397 } 398 398 for (i = 0; i < m_cDirs.GetItemCount(); i++) 399 399 { 400 intdata = m_cDirs.GetItemData(i);400 DWORD_PTR data = m_cDirs.GetItemData(i); 401 401 if (data > index) 402 402 { 403 403 m_cDirs.SetItemData(i, data - 1); … … 448 448 pUser->permissions[item.lParam].bIsHome = 0; 449 449 m_cDirs.SetItem(&item); 450 450 } 451 intindex = m_cDirs.GetItemData(nItem);451 DWORD_PTR index = m_cDirs.GetItemData(nItem); 452 452 pUser->permissions[index].bIsHome = 1; 453 453 } 454 454 … … 503 503 if (!selpos) 504 504 return; 505 505 int nItem = m_cDirs.GetNextSelectedItem(selpos); 506 intindex = m_cDirs.GetItemData(nItem);506 DWORD_PTR index = m_cDirs.GetItemData(nItem); 507 507 508 508 if (!pItemActivate || !pItemActivate->iSubItem) 509 509 { … … 621 621 POSITION selpos = m_cDirs.GetFirstSelectedItemPosition(); 622 622 if (selpos) { 623 623 int item = m_cDirs.GetNextSelectedItem(selpos); 624 intindex = m_cDirs.GetItemData(item);624 DWORD_PTR index = m_cDirs.GetItemData(item); 625 625 user.permissions[index].bFileRead = m_bFilesRead; 626 626 user.permissions[index].bFileWrite = m_bFilesWrite; 627 627 user.permissions[index].bFileDelete = m_bFilesDelete; … … 644 644 if (!selpos) 645 645 return; 646 646 int nItem = m_cDirs.GetNextSelectedItem(selpos); 647 intindex = m_cDirs.GetItemData(nItem);647 DWORD_PTR index = m_cDirs.GetItemData(nItem); 648 648 649 649 if (pUser->permissions[index].bIsHome) 650 650 { -
Interface/UsersDlgSpeedLimit.cpp
196 196 { 197 197 listBox.ResetContent(); 198 198 199 for ( unsigned int i = 0; i < list.size(); i++)199 for (size_t i = 0; i < list.size(); i++) 200 200 { 201 201 CString str; 202 202