diff options
Diffstat (limited to 'CPP/Windows/FileName.cpp')
-rw-r--r-- | CPP/Windows/FileName.cpp | 8 |
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() | |||
278 | int FindAltStreamColon(CFSTR path) throw() | 278 | int 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 == ':') |