From: Behdad Esfahbod Date: Wed, 4 Feb 2009 01:50:29 +0000 (-0500) Subject: [win32] Do not remove leading '\\' such that network paths work X-Git-Tag: 2.7.0~104 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f9feb587faa5a3df0f03e5ba945d228b8b49ec51;p=fontconfig.git [win32] Do not remove leading '\\' such that network paths work Raised by Diego Santa Cruz. --- 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 == '\\')