summaryrefslogtreecommitdiff
path: root/w32/pathstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'w32/pathstuff.c')
-rw-r--r--w32/pathstuff.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/w32/pathstuff.c b/w32/pathstuff.c
index 0622349..6f712d1 100644
--- a/w32/pathstuff.c
+++ b/w32/pathstuff.c
@@ -70,11 +70,17 @@ convert_Path_to_windows32(char *Path, char to_delim)
} else
/* all finished, force abort */
p += strlen(p);
+ } else if (*p == '"') { /* a quoted directory */
+ for (p++; *p && *p != '"'; p++) /* skip quoted part */
+ ;
+ etok = strpbrk(p, ":;"); /* find next delimiter */
+ *etok = to_delim;
+ p = ++etok;
} else {
/* found another one, no drive letter */
*etok = to_delim;
p = ++etok;
- }
+ }
return Path;
}