https://git.reactos.org/?p=reactos.git;a=commitdiff;h=268cdf5702b7463a1ffbf047c935c5ac183a33f7

commit 268cdf5702b7463a1ffbf047c935c5ac183a33f7
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Wed Aug 7 18:47:54 2019 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Wed Aug 7 18:49:19 2019 +0200

    [FREELDR] Fix x64 build.
---
 boot/freeldr/freeldr/CMakeLists.txt    | 2 +-
 boot/freeldr/freeldr/bootmgr.c         | 2 +-
 boot/freeldr/freeldr/include/freeldr.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/boot/freeldr/freeldr/CMakeLists.txt 
b/boot/freeldr/freeldr/CMakeLists.txt
index d4263050ad4..05489b3bda6 100644
--- a/boot/freeldr/freeldr/CMakeLists.txt
+++ b/boot/freeldr/freeldr/CMakeLists.txt
@@ -154,7 +154,7 @@ elseif(ARCH STREQUAL "amd64")
     list(APPEND FREELDR_ARC_SOURCE
         lib/fs/pxe.c
         arch/i386/ntoskrnl.c
-        arch/i386/drivemap.c
+        # arch/i386/drivemap.c
         arch/i386/hardware.c
         arch/i386/hwacpi.c
         arch/i386/hwapm.c
diff --git a/boot/freeldr/freeldr/bootmgr.c b/boot/freeldr/freeldr/bootmgr.c
index cdd370567c2..6a9cb569e29 100644
--- a/boot/freeldr/freeldr/bootmgr.c
+++ b/boot/freeldr/freeldr/bootmgr.c
@@ -164,7 +164,7 @@ VOID LoadOperatingSystem(IN OperatingSystemItem* 
OperatingSystem)
     /* We must have the "BootType" value (it has been possibly added by 
InitOperatingSystemList()) */
     ASSERT(*BootType);
 
-#if defined(_M_IX86)
+#ifdef _M_IX86
     /* Install the drive mapper according to this section drive mappings */
     DriveMapMapDrivesInSection(SectionName);
 #endif
diff --git a/boot/freeldr/freeldr/include/freeldr.h 
b/boot/freeldr/freeldr/include/freeldr.h
index 71d47884402..d981dc2649a 100644
--- a/boot/freeldr/freeldr/include/freeldr.h
+++ b/boot/freeldr/freeldr/include/freeldr.h
@@ -107,10 +107,10 @@
 #include <arch/pc/machpc.h>
 #include <arch/pc/x86common.h>
 #include <arch/pc/pxe.h>
-#include <arch/i386/drivemap.h>
 #endif
 #if defined(_M_IX86)
 #include <arch/i386/i386.h>
+#include <arch/i386/drivemap.h>
 #include <arch/i386/machxbox.h>
 #include <internal/i386/intrin_i.h>
 #elif defined(_M_AMD64)

Reply via email to