mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Fix the MS XML wrapper on W8.1
This commit is contained in:
parent
337092fa4e
commit
772cd0bfe9
1 changed files with 9 additions and 1 deletions
|
@ -683,6 +683,10 @@ class msxml2_wrapper :
|
|||
HRESULT hr = attributes_->getIndexFromName(wUri.data(), static_cast<int>(wUri.length()),
|
||||
wLocalName.data(), static_cast<int>(wLocalName.length()),
|
||||
&index);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
index = -1;
|
||||
}
|
||||
return index;
|
||||
} // getIndex
|
||||
|
||||
|
@ -690,7 +694,11 @@ class msxml2_wrapper :
|
|||
{
|
||||
int index = -1;
|
||||
std::wstring wQName(string_adaptor::asStdWString(qName));
|
||||
attributes_->getIndexFromQName(wQName.data(), static_cast<int>(wQName.length()), &index);
|
||||
HRESULT hr = attributes_->getIndexFromQName(wQName.data(), static_cast<int>(wQName.length()), &index);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
index = -1;
|
||||
}
|
||||
return index;
|
||||
} // getIndex
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue