Unify LPCBYTE

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2019-06-14 09:35:17 +02:00
parent 638f2cf18d
commit 5a82dc2a25
5 changed files with 5 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ void eap::config_method_eaphost::load(_In_ IXMLDOMNode *pConfigRoot)
DWORD dwResult = EapHostPeerConfigXml2Blob(0, pXmlElEapHostConfig, &cfg_data_size, get_ptr(cfg_data), &m_type, get_ptr(error));
if (dwResult == ERROR_SUCCESS) {
update_type();
const BYTE *_cfg_data = cfg_data.get();
LPCBYTE _cfg_data = cfg_data.get();
m_cfg_blob.assign(_cfg_data, _cfg_data + cfg_data_size);
} else if (error)
throw eap_runtime_error(*error , __FUNCTION__ " EapHostPeerConfigXml2Blob failed.");

View File

@@ -151,7 +151,7 @@ void eap::method_eaphost::get_response_packet(
get_ptr(error));
if (dwResult == ERROR_SUCCESS) {
// Packet successfuly prepared.
const BYTE *__packet = _packet.get();
LPCBYTE __packet = _packet.get();
packet.assign(__packet, __packet + size_max);
} else if (error)
throw eap_runtime_error(*error , __FUNCTION__ " EapHostPeerGetSendPacket failed.");