diff --git a/reactos/subsys/system/cmd/internal.c b/reactos/subsys/system/cmd/internal.c index 864261a5144..bf2d2fd0d1d 100644 --- a/reactos/subsys/system/cmd/internal.c +++ b/reactos/subsys/system/cmd/internal.c @@ -276,7 +276,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param) TCHAR * tmpPath; TCHAR szCurrent[MAX_PATH]; TCHAR szMsg[RC_STRING_MAX_SIZE]; - UINT i; + INT i; /* Filter out special cases first */ @@ -329,7 +329,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param) /* Remove " */ i = 0; - while(i < _tcslen(szPath)) + while(i < (INT)_tcslen(szPath)) { if(szPath[i] == _T('\"')) memmove(&szPath[i],&szPath[i + 1], _tcslen(&szPath[i]) * sizeof(TCHAR));