This commit is contained in:
Simon Rozman 2016-09-01 09:04:39 +02:00
parent 6b2a71cc63
commit 98bd9f1935

View File

@ -92,12 +92,11 @@ void eap::credentials::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfi
HRESULT hr;
if (!m_identity.empty()) {
// <UserName>
if (!m_identity.empty())
if (FAILED(hr = eapxml::put_element_value(pDoc, pConfigRoot, bstr(L"UserName"), namespace_eapmetadata, bstr(m_identity))))
throw com_runtime_error(hr, __FUNCTION__ " Error creating <UserName> element.");
}
}
void eap::credentials::load(_In_ IXMLDOMNode *pConfigRoot)