https://git.reactos.org/?p=reactos.git;a=commitdiff;h=04b4e3b05da06d4e755f04...
commit 04b4e3b05da06d4e755f04ea218181483ef77fc7 Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Tue Nov 3 00:22:26 2020 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Tue Nov 3 01:52:36 2020 +0100
[FREELDR] Fix the parameter type of WinLdrSetupEms()
It's a NULL-terminated string. And thus avoid an unelegant cast. --- boot/freeldr/freeldr/ntldr/headless.c | 2 +- boot/freeldr/freeldr/ntldr/winldr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/boot/freeldr/freeldr/ntldr/headless.c b/boot/freeldr/freeldr/ntldr/headless.c index 64fd04adb7b..161e66420ae 100644 --- a/boot/freeldr/freeldr/ntldr/headless.c +++ b/boot/freeldr/freeldr/ntldr/headless.c @@ -300,7 +300,7 @@ WinLdrInitializeHeadlessPort(VOID) }
VOID -WinLdrSetupEms(IN PCHAR BootOptions) +WinLdrSetupEms(IN PCSTR BootOptions) { PCHAR Settings, RedirectPort;
diff --git a/boot/freeldr/freeldr/ntldr/winldr.c b/boot/freeldr/freeldr/ntldr/winldr.c index f76165f1640..d5ee1213e3e 100644 --- a/boot/freeldr/freeldr/ntldr/winldr.c +++ b/boot/freeldr/freeldr/ntldr/winldr.c @@ -22,7 +22,7 @@ extern BOOLEAN AcpiPresent;
extern HEADLESS_LOADER_BLOCK LoaderRedirectionInformation; extern BOOLEAN WinLdrTerminalConnected; -extern void WinLdrSetupEms(IN PCHAR BootOptions); +extern VOID WinLdrSetupEms(IN PCSTR BootOptions);
PLOADER_SYSTEM_BLOCK WinLdrSystemBlock;
@@ -1020,7 +1020,7 @@ LoadAndBootWindowsCommon(
#ifdef _M_IX86 /* Setup redirection support */ - WinLdrSetupEms((PCHAR)BootOptions); + WinLdrSetupEms(BootOptions); #endif
/* Convert BootPath to SystemRoot */