mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
handle Windows sepecific file://localhost/ semantic ... Daniel
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ... Daniel
This commit is contained in:
parent
42766c0eea
commit
b212bbbc88
@ -1,3 +1,7 @@
|
||||
Sun Aug 25 16:38:05 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ...
|
||||
|
||||
Thu Aug 22 22:03:19 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xpath.c: possible mem leak patch from Jason Adams
|
||||
|
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];
|
||||
|
Loading…
Reference in New Issue
Block a user