mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 14:58:29 +00:00
[LIBXML2] Update to version 2.10.1. CORE-17766
This commit is contained in:
parent
3f3714bad4
commit
0d5a4166a4
6 changed files with 39 additions and 42 deletions
16
sdk/lib/3rdparty/libxml2/parser.c
vendored
16
sdk/lib/3rdparty/libxml2/parser.c
vendored
|
@ -15359,22 +15359,10 @@ xmlDocPtr
|
|||
xmlCtxtReadDoc(xmlParserCtxtPtr ctxt, const xmlChar * cur,
|
||||
const char *URL, const char *encoding, int options)
|
||||
{
|
||||
xmlParserInputPtr stream;
|
||||
|
||||
if (cur == NULL)
|
||||
return (NULL);
|
||||
if (ctxt == NULL)
|
||||
return (NULL);
|
||||
xmlInitParser();
|
||||
|
||||
xmlCtxtReset(ctxt);
|
||||
|
||||
stream = xmlNewStringInputStream(ctxt, cur);
|
||||
if (stream == NULL) {
|
||||
return (NULL);
|
||||
}
|
||||
inputPush(ctxt, stream);
|
||||
return (xmlDoRead(ctxt, URL, encoding, options, 1));
|
||||
return (xmlCtxtReadMemory(ctxt, (const char *) cur, xmlStrlen(cur), URL,
|
||||
encoding, options));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue