ShellStatus = SHELL_NOT_FOUND;\r
} else {\r
Drive = GetFullyQualifiedPath(Directory);\r
- ChopLastSlash(Drive);\r
+ PathRemoveLastItem(Drive);\r
}\r
if (ShellStatus == SHELL_SUCCESS && Drive != NULL) {\r
//\r
ShellStatus = SHELL_NOT_FOUND;\r
} else {\r
Drive = GetFullyQualifiedPath(Directory);\r
- while (ChopLastSlash(Drive)) ;\r
+ while (PathRemoveLastItem(Drive)) ;\r
}\r
if (ShellStatus == SHELL_SUCCESS && Drive != NULL) {\r
//\r
ASSERT((Drive == NULL && DriveSize == 0) || (Drive != NULL));\r
Drive = StrnCatGrow(&Drive, &DriveSize, ShellGetCurrentDir(NULL), 0);\r
if (*Param1 == L'\\') {\r
- while (ChopLastSlash(Drive)) ;\r
+ while (PathRemoveLastItem(Drive)) ;\r
Drive = StrnCatGrow(&Drive, &DriveSize, Param1+1, 0);\r
} else {\r
Drive = StrnCatGrow(&Drive, &DriveSize, Param1, 0);\r