Skip to content

Commit

Permalink
Корректно укорачиваем пути с префиксом '\\?\'.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Sep 13, 2024
1 parent 0ed3df9 commit 59fbcc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DSUtil/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@ void EllipsisPath(CStringW& path, const int maxlen)
if (path.GetLength() > maxlen) {
int k = -1;
if (StartsWith(path, L"\\\\")) {
k = path.Find('\\', k+1);
if (StartsWith(path, L"?\\", 2) && StartsWith(path, L":\\", 5)) {
k = 6;
}
else {
k = path.Find('\\', k + 1);
}
}
else if (StartsWith(path, L":\\", 1)) {
k = 2;
Expand Down

0 comments on commit 59fbcc9

Please sign in to comment.