[USETUP]: Add an entry in freeldr.ini for EMS testing.
[reactos.git] / reactos / boot / freeldr / freeldr / windows / winldr.c
index fec79d9..6163933 100644 (file)
@@ -673,11 +673,6 @@ LoadAndBootWindows(IN OperatingSystemItem* OperatingSystem,
     /* Allocate and minimalistic-initialize LPB */
     AllocateAndInitLPB(&LoaderBlock);
 
-#ifdef _M_IX86
-    /* Setup redirection support */
-    WinLdrSetupEms(BootOptions);
-#endif
-
     /* Load Hive */
     UiDrawBackdrop();
     UiDrawProgressBarCenter(15, 100, "Loading system hive...");
@@ -711,6 +706,11 @@ LoadAndBootWindowsCommon(
     LPCSTR SystemRoot;
     TRACE("LoadAndBootWindowsCommon()\n");
 
+#ifdef _M_IX86
+    /* Setup redirection support */
+    WinLdrSetupEms((PCHAR)BootOptions);
+#endif
+
     /* Convert BootPath to SystemRoot */
     SystemRoot = strstr(BootPath, "\\");