mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-02-01 00:24:14 -06:00
9.21
This commit is contained in:
committed by
Kornel Lesiński
parent
de4f8c22fe
commit
35596517f2
@@ -20,8 +20,8 @@ static UString ReplaceIncorrectChars(const UString &s)
|
||||
res += c;
|
||||
}
|
||||
res.TrimRight();
|
||||
while (!res.IsEmpty() && res[res.Length() - 1] == '.')
|
||||
res.Delete(res.Length() - 1);
|
||||
while (!res.IsEmpty() && res.Back() == '.')
|
||||
res.DeleteBack();
|
||||
return res;
|
||||
#else
|
||||
return s;
|
||||
@@ -132,8 +132,8 @@ UString GetCorrectFullFsPath(const UString &path)
|
||||
{
|
||||
UString &s = parts[i];
|
||||
#ifdef _WIN32
|
||||
while (!s.IsEmpty() && s[s.Length() - 1] == '.')
|
||||
s.Delete(s.Length() - 1);
|
||||
while (!s.IsEmpty() && s.Back() == '.')
|
||||
s.DeleteBack();
|
||||
if (!IsSupportedName(s))
|
||||
s = (UString)L"_" + s;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user