EapHostPeerInvokeIdentityUI() call fixed

This commit is contained in:
Simon Rozman 2016-10-31 17:17:21 +01:00
parent c31e019cef
commit 655cbe70d1
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ eap::credentials::source_t eap::credentials_eaphost::combine(
DWORD cred_data_size = 0;
eap_blob_runtime cred_data;
unique_ptr<WCHAR[], EapHostPeerFreeRuntimeMemory_delete> identity;
eap_error error;
eap_error error; // MSDN says to use EapHostPeerFreeErrorMemory()/eap_error, but given the context of execution, probably eap_error_runtime would be the right choice.
DWORD dwResult = EapHostPeerGetIdentity(
0,
dwFlags,

View File

@ -325,7 +325,7 @@ void eap::peer_ttls_ui::invoke_identity_ui(
auto cred_inner = dynamic_cast<eap::credentials_eaphost*>(cred->m_inner.get());
DWORD cred_data_size = 0;
winstd::eap_blob cred_data;
unique_ptr<WCHAR[], EapHostPeerFreeRuntimeMemory_delete> identity;
unique_ptr<WCHAR[], EapHostPeerFreeMemory_delete> identity;
winstd::eap_error error;
DWORD dwResult = EapHostPeerInvokeIdentityUI(
0,