mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
- 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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user