[FREELDR] Fix the parameter type of WinLdrSetupEms()

It's a NULL-terminated string. And thus avoid an unelegant cast.
This commit is contained in:
Hermès Bélusca-Maïto 2020-11-03 00:22:26 +01:00
parent 58866a112a
commit 04b4e3b05d
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 3 additions and 3 deletions

View file

@ -300,7 +300,7 @@ WinLdrInitializeHeadlessPort(VOID)
}
VOID
WinLdrSetupEms(IN PCHAR BootOptions)
WinLdrSetupEms(IN PCSTR BootOptions)
{
PCHAR Settings, RedirectPort;

View file

@ -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 */