Skip to content

Commit db62000

Browse files
committed
GptPartitionEntry: use char16_t for partition name.
1 parent 1d0511c commit db62000

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

GptPartitionEntry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ bool GptPartitionEntry::isUsed() {
66

77
std::ostream &operator<<(std::ostream &os, GptPartitionEntry &entry) {
88
os << "Unique partition GUID: " << entry.uniquePartitionGuid << std::endl;
9-
os << "Partition name: " << entry.partitionName << std::endl;
10-
119
os << "Partition type GUID: " << entry.partitionTypeGuid << std::endl;
1210

1311
os << "Starting LBA: " << entry.startingLba << std::endl;

GptPartitionEntry.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class GptPartitionEntry {
1414
uint64_t startingLba;
1515
uint64_t endingLba;
1616
uint64_t attributes;
17-
uint8_t partitionName[72];
17+
// Encoded using UTF-16LE
18+
char16_t partitionName[36];
1819

1920
bool isUsed();
2021
};

0 commit comments

Comments
 (0)