mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Fix the Windows compilation of the hash function.
This commit is contained in:
@@ -1100,8 +1100,8 @@ bool CFMIAXNetwork::writeRegReq()
|
||||
return false;
|
||||
}
|
||||
|
||||
DWORD cbHash = MD5_DIGEST_STRING_LENGTH;
|
||||
if (!::CryptGetHashParam(hHash, HP_HASHVAL, (BYTE*)hash, &cbHash, 0)) {
|
||||
DWORD cbHash = 16U;
|
||||
if (!::CryptGetHashParam(hHash, HP_HASHVAL, hash, &cbHash, 0)) {
|
||||
printf("CryptGetHashParam failed: %ld\n", ::GetLastError());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user