Commit 02c2f0298a0b53ae0b8636567265b8a612c598d1

Authored by Heinrich Schuchardt
Committed by Alexander Graf
1 parent 83582419ea

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -965,7 +965,7 @@
965 965 struct efi_time last_access_time;
966 966 struct efi_time modification_time;
967 967 u64 attribute;
968   - s16 file_name[0];
  968 + u16 file_name[0];
969 969 };
970 970  
971 971 struct efi_file_system_info {
lib/efi_loader/efi_file.c
... ... @@ -563,7 +563,7 @@
563 563 if (fh->isdir)
564 564 info->attribute |= EFI_FILE_DIRECTORY;
565 565  
566   - ascii2unicode((u16 *)info->file_name, filename);
  566 + ascii2unicode(info->file_name, filename);
567 567 } else if (!guidcmp(info_type, &efi_file_system_info_guid)) {
568 568 struct efi_file_system_info *info = buffer;
569 569 disk_partition_t part;