- Fix "cd" usage when the initial directory is a directory right on top of the root drive. (Brandon Turner)

svn path=/trunk/; revision=16674
This commit is contained in:
Alex Ionescu 2005-07-21 03:26:42 +00:00
parent f479dd02aa
commit e4549de4a3

View file

@ -340,7 +340,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param)
szFinalPath[_tcslen(szFinalPath) - 1] = _T('\0');
/* Handle Root Directory Alone*/
if (_tcslen(szPath) == 3 && szPath[1] == _T(':'))
if (_tcslen(szFinalPath) == 3 && szFinalPath[1] == _T(':'))
{
if(!SetRootPath(szFinalPath))
{
@ -377,7 +377,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param)
break;
_tcscat(szFinalPath,f.cFileName);
if(IsExistingDirectory(szFinalPath))
{
if(!SetRootPath(szFinalPath))