Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rEFIt_UEFI/Platform/Volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class REFIT_VOLUME {

const XStringW getVolLabelOrOSXVolumeNameOrVolName() {
if ( VolLabel.notEmpty() ) return VolLabel;
// if ( osxVolumeName.notEmpty() ) return osxVolumeName; // not assigned
if ( osxVolumeName.notEmpty() ) return osxVolumeName;
return VolName;
}
};
Expand Down
6 changes: 5 additions & 1 deletion rEFIt_UEFI/entry_scan/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ STATIC XBool isFirstRootUUID(REFIT_VOLUME *Volume) {
}

// Set Entry->VolName to .disk_label.contentDetails if it exists
// Set Entry/Volume display name to .disk_label.contentDetails if it exists
STATIC EFI_STATUS GetOSXVolumeName(LOADER_ENTRY *Entry) {
EFI_STATUS Status = EFI_NOT_FOUND;
CONST CHAR16 *targetNameFile =
Expand All @@ -476,7 +477,10 @@ STATIC EFI_STATUS GetOSXVolumeName(LOADER_ENTRY *Entry) {
Status = egLoadFile(Entry->Volume->RootDir, targetNameFile,
(UINT8 **)&fileBuffer, &fileLen);
if (!EFI_ERROR(Status)) {
Entry->DisplayedVolName.strncpy(fileBuffer, fileLen);
if (Entry->DisplayedVolName.isEmpty()) {
Entry->DisplayedVolName.strncpy(fileBuffer, fileLen);
}
Entry->Volume->osxVolumeName.strncpy(fileBuffer, fileLen);
DBG("Created name:%ls\n", Entry->DisplayedVolName.wc_str());

FreePool(fileBuffer);
Expand Down
Loading