Fix wrongly squashing for the network path on Win32.

Patch from Diego Santa Cruz
This commit is contained in:
Akira TAGOH 2012-10-09 11:03:03 +09:00
parent 8daa863c6d
commit 8890f94438
1 changed files with 4 additions and 0 deletions

View File

@ -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')
{