- Fix "cd" usage when the initial directory is a directory right on top of the root drive. (Brandon Turner) Modified: trunk/reactos/subsys/system/cmd/internal.c _____
Modified: trunk/reactos/subsys/system/cmd/internal.c --- trunk/reactos/subsys/system/cmd/internal.c 2005-07-20 23:35:59 UTC (rev 16673) +++ trunk/reactos/subsys/system/cmd/internal.c 2005-07-21 03:26:42 UTC (rev 16674) @@ -340,7 +340,7 @@
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 @@ break;
_tcscat(szFinalPath,f.cFileName); - + if(IsExistingDirectory(szFinalPath)) { if(!SetRootPath(szFinalPath))