Author: tkreuzer
Date: Tue Jan 25 22:23:10 2011
New Revision: 50496
URL:
http://svn.reactos.org/svn/reactos?rev=50496&view=rev
Log:
[FREELDR]
Fix compilation on MSVC
Modified:
branches/cmake-bringup/boot/freeldr/freeldr/windows/winldr.c
Modified: branches/cmake-bringup/boot/freeldr/freeldr/windows/winldr.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/boot/freeldr/free…
==============================================================================
--- branches/cmake-bringup/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] (original)
+++ branches/cmake-bringup/boot/freeldr/freeldr/windows/winldr.c [iso-8859-1] Tue Jan 25
22:23:10 2011
@@ -39,6 +39,10 @@
extern ULONG LoaderPagesSpanned;
extern BOOLEAN AcpiPresent;
+extern HEADLESS_LOADER_BLOCK LoaderRedirectionInformation;
+extern BOOLEAN WinLdrTerminalConnected;
+extern void WinLdrSetupEms(IN PCHAR BootOptions);
+
BOOLEAN
WinLdrCheckForLoadedDll(IN OUT PLOADER_PARAMETER_BLOCK WinLdrBlock,
IN PCH DllName,
@@ -155,7 +159,7 @@
ArcDiskInfo->ArcName = (PCHAR)PaToVa(ArcDiskInfo->ArcName);
/* Mark partition table as valid */
- ArcDiskInfo->ValidPartitionTable = TRUE;
+ ArcDiskInfo->ValidPartitionTable = TRUE;
/* Insert into the list */
InsertTailList(&LoaderBlock->ArcDiskInformation->DiskSignatureListHead,
@@ -203,11 +207,9 @@
/* See KiRosFrldrLpbToNtLpb for details */
Extension->AcpiTable = (PVOID)1;
}
-
+
#ifndef _M_ARM
/* Set headless block pointer */
- extern HEADLESS_LOADER_BLOCK LoaderRedirectionInformation;
- extern BOOLEAN WinLdrTerminalConnected;
if (WinLdrTerminalConnected)
{
Extension->HeadlessLoaderBlock = MmHeapAlloc(sizeof(HEADLESS_LOADER_BLOCK));
@@ -535,10 +537,9 @@
/* Allocate and minimalistic-initialize LPB */
AllocateAndInitLPB(&LoaderBlock);
-
+
#ifndef _M_ARM
/* Setup redirection support */
- extern void WinLdrSetupEms(IN PCHAR BootOptions);
WinLdrSetupEms(BootOptions);
#endif
/* Detect hardware */