mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
CryptoPkg: Fix compilation with newer Xcode due to bugged type conversion
This commit is contained in:
parent
81e5a79ee5
commit
049d5649f1
@ -20,22 +20,22 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
@retval The number of characters in the passphrase or 0 if an error occurred.
|
@retval The number of characters in the passphrase or 0 if an error occurred.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
INTN
|
INT32
|
||||||
PasswordCallback (
|
PasswordCallback (
|
||||||
OUT CHAR8 *Buf,
|
OUT CHAR8 *Buf,
|
||||||
IN INTN Size,
|
IN INT32 Size,
|
||||||
IN INTN Flag,
|
IN INT32 Flag,
|
||||||
IN VOID *Key
|
IN VOID *Key
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
INTN KeyLength;
|
INT32 KeyLength;
|
||||||
|
|
||||||
ZeroMem ((VOID *)Buf, (UINTN)Size);
|
ZeroMem ((VOID *)Buf, (UINTN)Size);
|
||||||
if (Key != NULL) {
|
if (Key != NULL) {
|
||||||
//
|
//
|
||||||
// Duplicate key phrase directly.
|
// Duplicate key phrase directly.
|
||||||
//
|
//
|
||||||
KeyLength = (INTN)AsciiStrLen ((CHAR8 *)Key);
|
KeyLength = (INT32)AsciiStrLen ((CHAR8 *)Key);
|
||||||
KeyLength = (KeyLength > Size) ? Size : KeyLength;
|
KeyLength = (KeyLength > Size) ? Size : KeyLength;
|
||||||
CopyMem (Buf, Key, (UINTN)KeyLength);
|
CopyMem (Buf, Key, (UINTN)KeyLength);
|
||||||
return KeyLength;
|
return KeyLength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user