mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SETUPLIB] SetupCreateSingleDirectory(): Remove '\.' trailing sequence handling hack
It was introduced in commit703eb5e8c9
(r7756) in order to hack around the "dot"-path added in the reactos.dff generator file by the earlier commit3bd689f185
(r7269). Its aim was to describe the installation directory itself, instead of one of its sub-directories. That _invalid_ "dot"-path was removed later by commit027e2bfa3a
(r15423); however the '\.' hack stayed for quite a while in our code. The correct way to describe the installation directory itself is to use instead "\", compatible with Windows' setup, as was originally done in txtsetup.sif, and fixed in reactos.dff(.in) in commit97bb83fcd9
(r66604).
This commit is contained in:
parent
d009de44ad
commit
00ddae49d5
1 changed files with 0 additions and 8 deletions
|
@ -38,14 +38,6 @@ SetupCreateSingleDirectory(
|
|||
if (!RtlCreateUnicodeString(&PathName, DirectoryName))
|
||||
return STATUS_NO_MEMORY;
|
||||
|
||||
if (PathName.Length > sizeof(WCHAR) &&
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR) - 2] == L'\\' &&
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR) - 1] == L'.')
|
||||
{
|
||||
PathName.Length -= sizeof(WCHAR);
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR)] = UNICODE_NULL;
|
||||
}
|
||||
|
||||
if (PathName.Length > sizeof(WCHAR) &&
|
||||
PathName.Buffer[PathName.Length / sizeof(WCHAR) - 1] == L'\\')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue