mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 14:11:34 -06:00
4.38 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
cb9eea7264
commit
83911c8529
@@ -41,14 +41,20 @@ UString GetCorrectPath(const UString &path)
|
||||
break;
|
||||
while(result.Length() > first)
|
||||
{
|
||||
if (result[first] == L'\\' || result[first] == L'/')
|
||||
if (
|
||||
#ifdef _WIN32
|
||||
result[first] == L'\\' ||
|
||||
#endif
|
||||
result[first] == L'/')
|
||||
{
|
||||
result.Delete(first);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
result.Replace(L"..\\", L"");
|
||||
#endif
|
||||
result.Replace(L"../", L"");
|
||||
|
||||
ReplaceDisk(result);
|
||||
|
||||
Reference in New Issue
Block a user