mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
handle Windows sepecific file://localhost/ semantic ... Daniel
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ... Daniel
This commit is contained in:
4
xmlIO.c
4
xmlIO.c
@ -297,7 +297,11 @@ xmlFileOpen (const char *filename) {
|
||||
}
|
||||
|
||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost", 16))
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
path = &filename[17];
|
||||
#else
|
||||
path = &filename[16];
|
||||
#endif
|
||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||
path = &filename[8];
|
||||
|
Reference in New Issue
Block a user