Minor compilation fixes for Borland.
Changed tabs to spaces. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -298,11 +298,11 @@ static bool wxIsDriveAvailable(const wxString dirName)
|
|||||||
|
|
||||||
// Check if this is a root directory and if so,
|
// Check if this is a root directory and if so,
|
||||||
// whether the drive is avaiable.
|
// whether the drive is avaiable.
|
||||||
if (dirName.Len() == 3 && dirName[1] == wxT(':'))
|
if (dirName.Len() == 3 && dirName[(size_t)1] == wxT(':'))
|
||||||
{
|
{
|
||||||
wxString dirNameLower(dirName.Lower());
|
wxString dirNameLower(dirName.Lower());
|
||||||
int currentDrive = _getdrive();
|
int currentDrive = _getdrive();
|
||||||
int thisDrive = (int) (dirNameLower[0] - 'a' + 1) ;
|
int thisDrive = (int) (dirNameLower[(size_t)0] - 'a' + 1) ;
|
||||||
int err = _chdrive( thisDrive ) ;
|
int err = _chdrive( thisDrive ) ;
|
||||||
_chdrive( currentDrive );
|
_chdrive( currentDrive );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user