Skip to content

Commit

Permalink
repair add options
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Isakov <[email protected]>
  • Loading branch information
SergeySlice committed Apr 11, 2020
1 parent de181ae commit c572e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rEFIt_UEFI/entry_scan/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}
}

Expand Down
2 changes: 1 addition & 1 deletion rEFIt_UEFI/entry_scan/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c572e50

Please sign in to comment.