winstd::eap_attr tested and stabilized

This commit is contained in:
2016-08-14 21:04:10 +02:00
parent 25c886754d
commit 028979524a
2 changed files with 12 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ winstd::eap_attr::~eap_attr()
void winstd::eap_attr::create_ms_mppe_key(_In_ BYTE bVendorType, _In_count_(nKeySize) LPCBYTE pbKey, _In_ BYTE nKeySize)
{
BYTE nPaddingLength = (BYTE)((16 - (1 + nKeySize)) % 16);
BYTE nPaddingLength = (BYTE)((16 - (1 + (DWORD)nKeySize)) % 16);
DWORD dwLengthNew =
4 + // Vendor-Id
1 + // Vendor type