Omit "B" from reported sizes
There should be a space between the number and a unit. Since everything is always reported in bytes, there is no need to have a unit. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
9e9648c924
commit
f4e8ba88ae
@ -238,7 +238,7 @@ EapPeerMethodResponseAction eap::method_eap::process_request_packet(
|
|||||||
// Check packet size.
|
// Check packet size.
|
||||||
DWORD size_packet = ntohs(*reinterpret_cast<const unsigned short*>(hdr->Length));
|
DWORD size_packet = ntohs(*reinterpret_cast<const unsigned short*>(hdr->Length));
|
||||||
if (size_packet > dwReceivedPacketSize)
|
if (size_packet > dwReceivedPacketSize)
|
||||||
throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %uB, received: %uB).", size_packet, dwReceivedPacketSize));
|
throw invalid_argument(string_printf(__FUNCTION__ " Incorrect EAP packet length (expected: %u, received: %u).", size_packet, dwReceivedPacketSize));
|
||||||
|
|
||||||
// Save request packet ID to make matching response packet in get_response_packet() later.
|
// Save request packet ID to make matching response packet in get_response_packet() later.
|
||||||
m_id = hdr->Id;
|
m_id = hdr->Id;
|
||||||
|
@ -145,7 +145,7 @@ BYTE* eap::module::alloc_memory(_In_ size_t size) const
|
|||||||
{
|
{
|
||||||
BYTE *p = (BYTE*)HeapAlloc(m_heap, 0, size);
|
BYTE *p = (BYTE*)HeapAlloc(m_heap, 0, size);
|
||||||
if (!p)
|
if (!p)
|
||||||
throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zuB).", size));
|
throw win_runtime_error(winstd::string_printf(__FUNCTION__ " Error allocating memory for BLOB (%zu).", size));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user