mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +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:
parent
f479dd02aa
commit
e4549de4a3
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue