From c572e50ec680f42ddf833f7a7fc953354c658c70 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Sat, 11 Apr 2020 23:39:51 +0300 Subject: [PATCH] repair add options Signed-off-by: Sergey Isakov --- rEFIt_UEFI/entry_scan/common.cpp | 2 +- rEFIt_UEFI/entry_scan/loader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/entry_scan/common.cpp b/rEFIt_UEFI/entry_scan/common.cpp index 2d0a7b54ef..04292e7654 100644 --- a/rEFIt_UEFI/entry_scan/common.cpp +++ b/rEFIt_UEFI/entry_scan/common.cpp @@ -175,7 +175,7 @@ XString AddLoadOption(IN CONST XString& LoadOptions, IN CONST XString& LoadOptio if ( LoadOptions.ExistIn(LoadOption) ) return LoadOptions; //good // Otherwise add option // return SPrintf("%s %s", LoadOptions.c_str(), LoadOption.c_str()); //LoadOptions + LoadOption - return LoadOptions + LoadOption; //why not? + return LoadOptions + " "_XS + LoadOption; //why not? } } diff --git a/rEFIt_UEFI/entry_scan/loader.cpp b/rEFIt_UEFI/entry_scan/loader.cpp index a04d6cfded..88a8ec5ca8 100644 --- a/rEFIt_UEFI/entry_scan/loader.cpp +++ b/rEFIt_UEFI/entry_scan/loader.cpp @@ -982,7 +982,7 @@ STATIC VOID AddDefaultMenu(IN LOADER_ENTRY *Entry) if (SubEntry) { SubEntry->Title.SWPrintf("Run %ls in text mode", FileName); SubEntry->Flags = OSFLAG_UNSET(SubEntry->Flags, OSFLAG_USEGRAPHICS); - SubEntry->LoadOptions.SPrintf("-v"); + SubEntry->LoadOptions.SPrintf(" -v"); SubEntry->LoaderType = OSTYPE_OTHER; // Sothor - Why are we using OSTYPE_OTHER here? SubScreen->AddMenuEntry(SubEntry, true); }