Skip to content

Commit

Permalink
GptPartitionEntry: use char16_t for partition name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos410 committed Dec 13, 2020
1 parent 1d0511c commit db62000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions GptPartitionEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ bool GptPartitionEntry::isUsed() {

std::ostream &operator<<(std::ostream &os, GptPartitionEntry &entry) {
os << "Unique partition GUID: " << entry.uniquePartitionGuid << std::endl;
os << "Partition name: " << entry.partitionName << std::endl;

os << "Partition type GUID: " << entry.partitionTypeGuid << std::endl;

os << "Starting LBA: " << entry.startingLba << std::endl;
Expand Down
3 changes: 2 additions & 1 deletion GptPartitionEntry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class GptPartitionEntry {
uint64_t startingLba;
uint64_t endingLba;
uint64_t attributes;
uint8_t partitionName[72];
// Encoded using UTF-16LE
char16_t partitionName[36];

bool isUsed();
};
Expand Down

0 comments on commit db62000

Please sign in to comment.