From c9cfc183d9801dd8878c17634fc998a09d3c5f17 Mon Sep 17 00:00:00 2001 From: jief666 Date: Tue, 24 Nov 2020 16:14:48 +0300 Subject: [PATCH] Keep "Bootx64" for debug log name if booted on /EFI/Boot/BootX64.efi --- rEFIt_UEFI/Platform/Self.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/Platform/Self.cpp b/rEFIt_UEFI/Platform/Self.cpp index 98996da93..6452170bc 100644 --- a/rEFIt_UEFI/Platform/Self.cpp +++ b/rEFIt_UEFI/Platform/Self.cpp @@ -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"); @@ -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);