aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1363d78710..b2f4695a96 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2811,7 +2811,7 @@ isUNCRoot(const char *path)
{
if (path[0] == '\\' && path[1] == '\\') {
const char *p;
- for (p = path + 3; *p; p = CharNext(p)) {
+ for (p = path + 2; *p; p = CharNext(p)) {
if (*p == '\\')
break;
}
@@ -2820,7 +2820,7 @@ isUNCRoot(const char *path)
if (*p == '\\')
break;
}
- if (!p[0] || !p[1] || (p[0] == '\\' && p[1] == '.'))
+ if (!p[0] || !p[1] || (p[1] == '.' && !p[2]))
return 1;
}
}