Fix wrongly squashing for the network path on Win32.
Patch from Diego Santa Cruz
This commit is contained in:
parent
8daa863c6d
commit
8890f94438
|
@ -974,6 +974,10 @@ FcStrCanonAbsoluteFilename (const FcChar8 *s)
|
||||||
FcMemAlloc (FC_MEM_STRING, size);
|
FcMemAlloc (FC_MEM_STRING, size);
|
||||||
slash = NULL;
|
slash = NULL;
|
||||||
f = file;
|
f = file;
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (*s == '/' && *(s+1) == '/') /* Network path, do not squash // */
|
||||||
|
*f++ = *s++;
|
||||||
|
#endif
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (*s == '/' || *s == '\0')
|
if (*s == '/' || *s == '\0')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue