diff --git a/src/fcstr.c b/src/fcstr.c index f505ea6..037960d 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -974,6 +974,10 @@ FcStrCanonAbsoluteFilename (const FcChar8 *s) FcMemAlloc (FC_MEM_STRING, size); slash = NULL; f = file; +#ifdef _WIN32 + if (*s == '/' && *(s+1) == '/') /* Network path, do not squash // */ + *f++ = *s++; +#endif for (;;) { if (*s == '/' || *s == '\0') {