aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/FileName.cpp
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-11-29 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-11-30 15:27:15 +0500
commite5431fa6f5505e385c6f9367260717e9c47dc2ee (patch)
tree4cd2c2c3b225b48c8e7053432c41d7b6b6a3d5f8 /CPP/Windows/FileName.cpp
parente008ce3976c087bfd21344af8f00a23cf69d4174 (diff)
download7zip-e5431fa6f5505e385c6f9367260717e9c47dc2ee.tar.gz
7zip-e5431fa6f5505e385c6f9367260717e9c47dc2ee.tar.bz2
7zip-e5431fa6f5505e385c6f9367260717e9c47dc2ee.zip
24.0924.09
Diffstat (limited to 'CPP/Windows/FileName.cpp')
-rw-r--r--CPP/Windows/FileName.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/CPP/Windows/FileName.cpp b/CPP/Windows/FileName.cpp
index c16b3d4..1f4a6da 100644
--- a/CPP/Windows/FileName.cpp
+++ b/CPP/Windows/FileName.cpp
@@ -278,12 +278,14 @@ bool IsAbsolutePath(const wchar_t *s) throw()
278int FindAltStreamColon(CFSTR path) throw() 278int FindAltStreamColon(CFSTR path) throw()
279{ 279{
280 unsigned i = 0; 280 unsigned i = 0;
281 if (IsDrivePath2(path)) 281 if (IsSuperPath(path))
282 i = 2; 282 i = kSuperPathPrefixSize;
283 if (IsDrivePath2(path + i))
284 i += 2;
283 int colonPos = -1; 285 int colonPos = -1;
284 for (;; i++) 286 for (;; i++)
285 { 287 {
286 FChar c = path[i]; 288 const FChar c = path[i];
287 if (c == 0) 289 if (c == 0)
288 return colonPos; 290 return colonPos;
289 if (c == ':') 291 if (c == ':')