mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
efi_loader: use u16* for UTF16 strings
We should be consistent in the types that we use to store Unicode strings. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
83582419ea
commit
02c2f0298a
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue