Author: hbelusca Date: Sun Feb 1 15:22:31 2015 New Revision: 66142
URL: http://svn.reactos.org/svn/reactos?rev=66142&view=rev Log: [FREELDR]: Pseudo-fix my previous commit. But anyway, the "usebiossettings" case looks strange... (I mean, this precise line: LoaderRedirectionInformation.PortAddress = (PUCHAR)strtoul(Settings, 0, 16); ).
Modified: trunk/reactos/boot/freeldr/freeldr/windows/headless.c
Modified: trunk/reactos/boot/freeldr/freeldr/windows/headless.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/window... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/windows/headless.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/windows/headless.c [iso-8859-1] Sun Feb 1 15:22:31 2015 @@ -242,7 +242,7 @@ VOID WinLdrSetupEms(IN PCHAR BootOptions) { - PCHAR Settings; + PCHAR Settings, RedirectPort;
/* Start fresh */ RtlZeroMemory(&LoaderRedirectionInformation, sizeof(HEADLESS_LOADER_BLOCK)); @@ -252,7 +252,7 @@ Settings = strstr(BootOptions, "/redirect="); if (Settings) { - PCHAR RedirectPort = strstr(Settings, "com"); + RedirectPort = strstr(Settings, "com"); if (RedirectPort) { RedirectPort += sizeof("com") - 1; @@ -261,10 +261,11 @@ } else { - Settings = strstr(Settings, "usebiossettings"); - if (Settings) + RedirectPort = strstr(Settings, "usebiossettings"); + if (RedirectPort) { UiDrawStatusText("ACPI SRT Table Not Supported..."); + return; } else {