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:
Andrew Boie 2013-11-12 10:30:02 -05:00 committed by Peter Jones
parent e226b35e65
commit 2c5f9938ad

View File

@ -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)) {