summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/efi_api.h2
-rw-r--r--lib/efi_loader/efi_file.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index e58dd0581c..aef77b6319 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -965,7 +965,7 @@ struct efi_file_info {
struct efi_time last_access_time;
struct efi_time modification_time;
u64 attribute;
- s16 file_name[0];
+ u16 file_name[0];
};
struct efi_file_system_info {
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c
index beb4fba917..128cb0a627 100644
--- a/lib/efi_loader/efi_file.c
+++ b/lib/efi_loader/efi_file.c
@@ -563,7 +563,7 @@ static efi_status_t EFIAPI efi_file_getinfo(struct efi_file_handle *file,
if (fh->isdir)
info->attribute |= EFI_FILE_DIRECTORY;
- ascii2unicode((u16 *)info->file_name, filename);
+ ascii2unicode(info->file_name, filename);
} else if (!guidcmp(info_type, &efi_file_system_info_guid)) {
struct efi_file_system_info *info = buffer;
disk_partition_t part;