mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:50:06 +00:00
Update dependency libxml2 to v2.11.5
This commit is contained in:
parent
0e633e1808
commit
a98d978cc6
2 changed files with 15 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ class SupercellWxConan(ConanFile):
|
||||||
"glm/cci.20230113",
|
"glm/cci.20230113",
|
||||||
"gtest/1.14.0",
|
"gtest/1.14.0",
|
||||||
"libcurl/8.4.0",
|
"libcurl/8.4.0",
|
||||||
"libxml2/2.10.4",
|
"libxml2/2.11.5",
|
||||||
"openssl/3.1.4",
|
"openssl/3.1.4",
|
||||||
"spdlog/1.12.0",
|
"spdlog/1.12.0",
|
||||||
"sqlite3/3.44.0",
|
"sqlite3/3.44.0",
|
||||||
|
|
|
||||||
|
|
@ -100,11 +100,20 @@ std::vector<DirListRecord> DirList(const std::string& baseUrl)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
htmlDocPtr doc = htmlSAXParseDoc(
|
htmlParserCtxtPtr ctxt = htmlNewSAXParserCtxt(&saxHandler_, &saxData);
|
||||||
|
htmlDocPtr doc = nullptr;
|
||||||
|
|
||||||
|
if (ctxt != nullptr)
|
||||||
|
{
|
||||||
|
doc = htmlCtxtReadDoc(
|
||||||
|
ctxt,
|
||||||
reinterpret_cast<const xmlChar*>(response.text.c_str()),
|
reinterpret_cast<const xmlChar*>(response.text.c_str()),
|
||||||
|
baseUrl.c_str(),
|
||||||
nullptr,
|
nullptr,
|
||||||
&saxHandler_,
|
HTML_PARSE_NONET);
|
||||||
&saxData);
|
htmlFreeParserCtxt(ctxt);
|
||||||
|
}
|
||||||
|
|
||||||
if (doc != nullptr)
|
if (doc != nullptr)
|
||||||
{
|
{
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue