diff --git a/rosapps/cmd/internal.c b/rosapps/cmd/internal.c index b702cf85880..b5994789701 100644 --- a/rosapps/cmd/internal.c +++ b/rosapps/cmd/internal.c @@ -256,7 +256,8 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param) } else { - if (towupper(dir[0])!=lpOldPath[0]) + GetCurrentDirectory(MAX_PATH, dir); + if (dir[0]!=lpOldPath[0]) { SetCurrentDirectory(lpOldPath); free(lpOldPath);