aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 62c3076d73..4804359794 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4485,7 +4485,7 @@ check_valid_dir(const WCHAR *path)
errno = map_errno(GetLastError());
return -1;
}
- if (GetDriveTypeW(full) != DRIVE_NO_ROOT_DIR)
+ if (full[1] == L':' && !full[3] && GetDriveTypeW(full) != DRIVE_NO_ROOT_DIR)
return 0;
fh = open_dir_handle(path, &fd);