Skip to content

Commit

Permalink
Keep "Bootx64" for debug log name if booted on /EFI/Boot/BootX64.efi
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Nov 24, 2020
1 parent 8a56157 commit c9cfc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rEFIt_UEFI/Platform/Self.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ EFI_STATUS Self::_initialize()
m_CloverDirFullPath.insertAtPos('\\', 0);
}

m_efiFileName = m_CloverDirFullPath.basename();

// History : if this Clover was started as BootX64.efi, redirect to /EFI/CLOVER
if ( m_CloverDirFullPath.equalIC("\\EFI\\Boot\\BootX64.efi") ) {
m_CloverDirFullPath.takeValueFrom("\\EFI\\CLOVER\\CloverX64.efi");
Expand All @@ -83,8 +85,6 @@ EFI_STATUS Self::_initialize()
if ( m_CloverDirFullPath.lastChar() == U'\\' ) panic("m_CloverDirFullPath.lastChar() == U'\\'");
//if ( m_CloverDirFullPath.endsWith('\\') ) panic("m_CloverDirFullPath.endsWith('\\')");

m_efiFileName = m_CloverDirFullPath.basename();

size_t i = m_CloverDirFullPath.rindexOf(U'\\', SIZE_T_MAX-1);
if ( i != SIZE_T_MAX && i > 0 ) m_CloverDirFullPath.deleteCharsAtPos(i, SIZE_T_MAX);

Expand Down

0 comments on commit c9cfc18

Please sign in to comment.