From f9feb587faa5a3df0f03e5ba945d228b8b49ec51 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 3 Feb 2009 20:50:29 -0500 Subject: [PATCH] [win32] Do not remove leading '\\' such that network paths work Raised by Diego Santa Cruz. --- src/fcstr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fcstr.c b/src/fcstr.c index dc7807d..2f2cd4d 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -943,7 +943,13 @@ FcConvertDosPath (char *str) char *dest = str; char *end = str + len; char last = 0; - + + if (*p == '\\') + { + *p = '/'; + p++; + dest++; + } while (p < end) { if (*p == '\\') -- 2.39.5