Fix the MS XML wrapper on W8.1

This commit is contained in:
Lukas Obrdlik 2014-10-22 12:07:29 +02:00
parent 337092fa4e
commit 772cd0bfe9

View file

@ -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