Fix the Windows compilation of the hash function.

This commit is contained in:
Jonathan Naylor
2024-07-16 20:21:33 +01:00
parent 4b4a577bfd
commit 03b06a3875

View File

@@ -1100,8 +1100,8 @@ bool CFMIAXNetwork::writeRegReq()
return false; return false;
} }
DWORD cbHash = MD5_DIGEST_STRING_LENGTH; DWORD cbHash = 16U;
if (!::CryptGetHashParam(hHash, HP_HASHVAL, (BYTE*)hash, &cbHash, 0)) { if (!::CryptGetHashParam(hHash, HP_HASHVAL, hash, &cbHash, 0)) {
printf("CryptGetHashParam failed: %ld\n", ::GetLastError()); printf("CryptGetHashParam failed: %ld\n", ::GetLastError());
return false; return false;
} }