mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-05-02 13:29:29 +00:00
fallback.c: fix 32-bit compilation
fh->Read expects pointer to 32-bit int, use UINTN Change-Id: If1a728efd51a9a24dfcd8123e84bf4c0713491fe Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e226b35e65
commit
2c5f9938ad
@ -15,7 +15,7 @@
|
||||
EFI_LOADED_IMAGE *this_image = NULL;
|
||||
|
||||
static EFI_STATUS
|
||||
get_file_size(EFI_FILE_HANDLE fh, UINT64 *retsize)
|
||||
get_file_size(EFI_FILE_HANDLE fh, UINTN *retsize)
|
||||
{
|
||||
EFI_STATUS rc;
|
||||
void *buffer = NULL;
|
||||
@ -60,7 +60,7 @@ read_file(EFI_FILE_HANDLE fh, CHAR16 *fullpath, CHAR16 **buffer, UINT64 *bs)
|
||||
return rc;
|
||||
}
|
||||
|
||||
UINT64 len = 0;
|
||||
UINTN len = 0;
|
||||
CHAR16 *b = NULL;
|
||||
rc = get_file_size(fh2, &len);
|
||||
if (EFI_ERROR(rc)) {
|
||||
|
Loading…
Reference in New Issue
Block a user