mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 10:03:07 +00:00
Fix mkdir command, if compiled in UNICODE. Patch by Pierre Schweitzer (heis_spiter at hotmail dot com)
See issue #2216 for more details. svn path=/trunk/; revision=26545
This commit is contained in:
parent
07a4c5d550
commit
253fa4b7a0
3 changed files with 6 additions and 4 deletions
|
@ -440,7 +440,7 @@ MakeFullPath(TCHAR * DirPath)
|
||||||
while ((p = _tcschr(p, _T('\\'))) != NULL)
|
while ((p = _tcschr(p, _T('\\'))) != NULL)
|
||||||
{
|
{
|
||||||
n = p - DirPath + 1;
|
n = p - DirPath + 1;
|
||||||
memcpy(path, DirPath, n);
|
_tcsncpy(path, DirPath, n);
|
||||||
path[n] = _T('\0');
|
path[n] = _T('\0');
|
||||||
if( !CreateDirectory(path, NULL) &&
|
if( !CreateDirectory(path, NULL) &&
|
||||||
(GetLastError() != ERROR_ALREADY_EXISTS))
|
(GetLastError() != ERROR_ALREADY_EXISTS))
|
||||||
|
|
|
@ -570,6 +570,8 @@ STRING_CHCP_ERROR4, "Page de code invalide \n"
|
||||||
STRING_CHOICE_ERROR, "Option invalide. Format attendu: /C[:]options"
|
STRING_CHOICE_ERROR, "Option invalide. Format attendu: /C[:]options"
|
||||||
STRING_CHOICE_ERROR_TXT, "Option invalide. Format attendu: /T[:]c,nn"
|
STRING_CHOICE_ERROR_TXT, "Option invalide. Format attendu: /T[:]c,nn"
|
||||||
STRING_CHOICE_ERROR_OPTION, "Option invalide : %s"
|
STRING_CHOICE_ERROR_OPTION, "Option invalide : %s"
|
||||||
|
STRING_MD_ERROR, "Un sous répertoire ou un fichier est déjà existant.\n"
|
||||||
|
STRING_MD_ERROR2, "Le chemin vers le nouveau répertoire n'existe pas.\n"
|
||||||
STRING_CMD_ERROR1, "Ne peut rediriger l'entrée depuis le fichier %s\n"
|
STRING_CMD_ERROR1, "Ne peut rediriger l'entrée depuis le fichier %s\n"
|
||||||
STRING_CMD_ERROR2, "Erreur à la création du fichier temporaire pour les données du pipe\n"
|
STRING_CMD_ERROR2, "Erreur à la création du fichier temporaire pour les données du pipe\n"
|
||||||
STRING_CMD_ERROR3, "Ne peut rediriger vers le fichier %s\n"
|
STRING_CMD_ERROR3, "Ne peut rediriger vers le fichier %s\n"
|
||||||
|
|
|
@ -219,9 +219,9 @@
|
||||||
#define STRING_EXPECTED_CLOSE_PAREN 721
|
#define STRING_EXPECTED_CLOSE_PAREN 721
|
||||||
#define STRING_EXPECTED_NUMBER_OR_VARIABLE 722
|
#define STRING_EXPECTED_NUMBER_OR_VARIABLE 722
|
||||||
#define STRING_SYNTAX_COMMAND_INCORRECT 723
|
#define STRING_SYNTAX_COMMAND_INCORRECT 723
|
||||||
#define STRING_RMDIR_HELP2 724
|
#define STRING_RMDIR_HELP2 724
|
||||||
#define STRING_MD_ERROR 725
|
#define STRING_MD_ERROR 725
|
||||||
#define STRING_MD_ERROR2 726
|
#define STRING_MD_ERROR2 726
|
||||||
|
|
||||||
|
|
||||||
/* These strings are language independent (cmd.rc) */
|
/* These strings are language independent (cmd.rc) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue