VC++ /Wp64 warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -336,9 +336,8 @@ static bool BuildRemoteList(wxArrayString& list, NETRESOURCE* pResSrc,
|
|||||||
mounted.Sort(CompareFcn);
|
mounted.Sort(CompareFcn);
|
||||||
|
|
||||||
// apply list from bottom to top to preserve indexes if removing items.
|
// apply list from bottom to top to preserve indexes if removing items.
|
||||||
int iList = list.GetCount()-1;
|
size_t iList = list.GetCount()-1;
|
||||||
int iMounted;
|
for (size_t iMounted = mounted.GetCount()-1; iMounted >= 0 && iList >= 0; iMounted--)
|
||||||
for (iMounted = mounted.GetCount()-1; iMounted >= 0 && iList >= 0; iMounted--)
|
|
||||||
{
|
{
|
||||||
int compare;
|
int compare;
|
||||||
wxString all(list[iList]);
|
wxString all(list[iList]);
|
||||||
@@ -401,7 +400,7 @@ wxArrayString wxFSVolumeBase::GetVolumes(int flagsSet, int flagsUnset)
|
|||||||
// Local and mapped drives first.
|
// Local and mapped drives first.
|
||||||
//-------------------------------
|
//-------------------------------
|
||||||
// Allocate the required space for the API call.
|
// Allocate the required space for the API call.
|
||||||
size_t chars = GetLogicalDriveStrings(0, 0);
|
const DWORD chars = GetLogicalDriveStrings(0, NULL);
|
||||||
TCHAR* buf = new TCHAR[chars+1];
|
TCHAR* buf = new TCHAR[chars+1];
|
||||||
|
|
||||||
// Get the list of drives.
|
// Get the list of drives.
|
||||||
|
Reference in New Issue
Block a user