diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 06b22a2ed..78d662e50 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1643,7 +1643,8 @@ void hide_console(void) | |||
1643 | #endif | 1643 | #endif |
1644 | 1644 | ||
1645 | #define is_path_sep(x) ((x) == '/' || (x) == '\\') | 1645 | #define is_path_sep(x) ((x) == '/' || (x) == '\\') |
1646 | #define is_unc_path(x) (is_path_sep(x[0]) && is_path_sep(x[1])) | 1646 | #define is_unc_path(x) (strlen(x) > 4 && is_path_sep(x[0]) && \ |
1647 | is_path_sep(x[1]) && !is_path_sep(x[2])) | ||
1647 | 1648 | ||
1648 | /* Return the length of the root of a UNC path, i.e. the '//host/share' | 1649 | /* Return the length of the root of a UNC path, i.e. the '//host/share' |
1649 | * component, or 0 if the path doesn't look like that. */ | 1650 | * component, or 0 if the path doesn't look like that. */ |