mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Sam Arun Raj Seeniraj:
[WIN32CSR.DLL] - Removed previous hack in CsrDefineDosDevice() that was stripping off extra trailing path separators. [SUBST.EXE] - The help message was not show aligned properly, fixing that. See issue #993 for more details. svn path=/trunk/; revision=51667
This commit is contained in:
parent
9d03d12745
commit
037bb97747
4 changed files with 21 additions and 26 deletions
|
@ -8,9 +8,11 @@ BEGIN
|
||||||
IDS_INVALID_PARAMETER2 "Invalid parameter - %s\n"
|
IDS_INVALID_PARAMETER2 "Invalid parameter - %s\n"
|
||||||
IDS_DRIVE_ALREAD_SUBSTED "Drive already SUBSTed\n"
|
IDS_DRIVE_ALREAD_SUBSTED "Drive already SUBSTed\n"
|
||||||
IDS_FAILED_WITH_ERROCODE "Failed with error code 0x%x: %s\n"
|
IDS_FAILED_WITH_ERROCODE "Failed with error code 0x%x: %s\n"
|
||||||
IDS_USAGE "Associates a path with a drive letter.\n\nSUBST [drive1: [drive2:]path]\nSUBST drive1: /D\n\n drive1: \
|
IDS_USAGE "Associates a path with a drive letter.\n\n\
|
||||||
Specifies a virtual drive to which you want to assign a path.\n \
|
SUBST [drive1: [drive2:]path]\n\
|
||||||
[drive2:]path Specifies a physical drive and path you want to assign to\n \
|
SUBST drive1: /D\n\n\
|
||||||
a virtual drive.\n /D \
|
drive1: Specifies a virtual drive to which you want to assign a path.\n\
|
||||||
Deletes a substituted (virtual) drive.\n\nType SUBST with no parameters to display a list of current virtual drives.\n"
|
[drive2:]path Specifies a physical drive and path you want to assign to\n a virtual drive.\n\
|
||||||
|
/D Deletes a substituted (virtual) drive.\n\n\
|
||||||
|
Type SUBST with no parameters to display a list of current virtual drives.\n"
|
||||||
END
|
END
|
||||||
|
|
|
@ -8,9 +8,11 @@ BEGIN
|
||||||
IDS_INVALID_PARAMETER2 "Parámetro incorrecto - %s\n"
|
IDS_INVALID_PARAMETER2 "Parámetro incorrecto - %s\n"
|
||||||
IDS_DRIVE_ALREAD_SUBSTED "Unidad ya sustituida\n"
|
IDS_DRIVE_ALREAD_SUBSTED "Unidad ya sustituida\n"
|
||||||
IDS_FAILED_WITH_ERROCODE "Falla con código de error 0x%x: %s\n"
|
IDS_FAILED_WITH_ERROCODE "Falla con código de error 0x%x: %s\n"
|
||||||
IDS_USAGE "Asocia una ruta con una letra de unidad.\n\nSUBST [unidad1: [unidad2:]ruta]\nSUBST unidad1: /D\n\n unidad1: \
|
IDS_USAGE "Asocia una ruta con una letra de unidad.\n\n\
|
||||||
Especifica una unidad virtual a la cual se quiere asignar una ruta.\n \
|
SUBST [unidad1: [unidad2:]ruta]\n\
|
||||||
[unidad2:]ruta Especifica una unidad física y una ruta a la cual asignar\n \
|
SUBST unidad1: /D\n\n\
|
||||||
una unidad virtual.\n /D \
|
unidad1: Especifica una unidad virtual a la cual se quiere asignar una ruta.\n\
|
||||||
Elimina una unidad (virtual) substituida.\n\nEscribir SUBST sin parámetros para mostrar una lista de las unidades virtuales actuales.\n"
|
[unidad2:]ruta Especifica una unidad física y una ruta a la cual asignar\n una unidad virtual.\n\
|
||||||
|
/D Elimina una unidad (virtual) substituida.\n\n\
|
||||||
|
Escribir SUBST sin parámetros para mostrar una lista de las unidades virtuales actuales.\n"
|
||||||
END
|
END
|
||||||
|
|
|
@ -8,9 +8,11 @@ BEGIN
|
||||||
IDS_INVALID_PARAMETER2 "Parametro errato - %s\n"
|
IDS_INVALID_PARAMETER2 "Parametro errato - %s\n"
|
||||||
IDS_DRIVE_ALREAD_SUBSTED "Unità già sostituita\n"
|
IDS_DRIVE_ALREAD_SUBSTED "Unità già sostituita\n"
|
||||||
IDS_FAILED_WITH_ERROCODE "Interruzione con codice di errore 0x%x: %s\n"
|
IDS_FAILED_WITH_ERROCODE "Interruzione con codice di errore 0x%x: %s\n"
|
||||||
IDS_USAGE "Associa un percorso ad una lettera di unità.\n\nSUBST [unità1: [unità2:]percorso]\nSUBST unità1: /D\n\n unità1: \
|
IDS_USAGE "Associa un percorso ad una lettera di unità.\n\n\
|
||||||
Specifica un'unità virtuale alla quale assegnare un percorso.\n \
|
SUBST [unità1: [unità2:]percorso]\n\
|
||||||
[unità2:]percorso Specifica un'unità fisica e un percorso da assegnare ad una\n \
|
SUBST unità1: /D\n\n\
|
||||||
unità virtuale.\n /D \
|
unità1: Specifica un'unità virtuale alla quale assegnare un percorso.\n\
|
||||||
Elimina un'unità (virtuale) sostituita.\n\nDigitare SUBST senza parametri per mostrare un elenco delle unità virtuali attuali.\n"
|
[unità2:]percorso Specifica un'unità fisica e un percorso da assegnare ad una\n unità virtuale.\n\
|
||||||
|
/D Elimina un'unità (virtuale) sostituita.\n\n\
|
||||||
|
Digitare SUBST senza parametri per mostrare un elenco delle unità virtuali attuali.\n"
|
||||||
END
|
END
|
||||||
|
|
|
@ -98,17 +98,6 @@ CSR_API(CsrDefineDosDevice)
|
||||||
|
|
||||||
RequestLinkTarget =
|
RequestLinkTarget =
|
||||||
&Request->Data.DefineDosDeviceRequest.TargetName;
|
&Request->Data.DefineDosDeviceRequest.TargetName;
|
||||||
/*
|
|
||||||
* Strip off any trailing '\', if we leave a trailing slash the drive remains non-accessible.
|
|
||||||
* So working around it for now.
|
|
||||||
* FIXME: Need to fix this in the object manager ObpLookupObjectName()??, and remove this when the its fixed.
|
|
||||||
*/
|
|
||||||
while (RequestLinkTarget->Length >= sizeof(WCHAR) &&
|
|
||||||
RequestLinkTarget->Buffer[(RequestLinkTarget->Length/sizeof(WCHAR)) - 1] == L'\\')
|
|
||||||
{
|
|
||||||
RequestLinkTarget->Length -= sizeof(WCHAR);
|
|
||||||
}
|
|
||||||
|
|
||||||
lpBuffer = (PWSTR) RtlAllocateHeap(Win32CsrApiHeap,
|
lpBuffer = (PWSTR) RtlAllocateHeap(Win32CsrApiHeap,
|
||||||
HEAP_ZERO_MEMORY,
|
HEAP_ZERO_MEMORY,
|
||||||
RequestDeviceName.MaximumLength + 5 * sizeof(WCHAR));
|
RequestDeviceName.MaximumLength + 5 * sizeof(WCHAR));
|
||||||
|
|
Loading…
Reference in a new issue