Fixed compiler warnings

This commit is contained in:
akallabeth 2023-01-30 13:00:13 +01:00 committed by akallabeth
parent 51e71b3c48
commit d96860780f
2 changed files with 3 additions and 3 deletions

View File

@ -2419,8 +2419,8 @@ BOOL license_send_platform_challenge_response(rdpLicense* license)
CopyMemory(buffer, Stream_Buffer(challengeRespData), Stream_Length(challengeRespData));
CopyMemory(&buffer[Stream_Length(challengeRespData)], license->HardwareId,
sizeof(license->HardwareId));
status = security_mac_data(license->MacSaltKey, sizeof(license->MacSaltKey),
sizeof(license->MacSaltKey), buffer, length, license->MACData);
status = security_mac_data(license->MacSaltKey, sizeof(license->MacSaltKey), buffer, length,
license->MACData, sizeof(license->MACData));
free(buffer);
if (!status)

View File

@ -263,7 +263,7 @@ static BOOL shadow_client_context_new(freerdp_peer* peer, rdpContext* context)
return TRUE;
fail:
shadow_client_context_free(peer, client);
shadow_client_context_free(peer, context);
return FALSE;
}