diff --git a/reactos/boot/freeldr/freeldr/arch/i386/hardware.c b/reactos/boot/freeldr/freeldr/arch/i386/hardware.c index 1ffe911c994..2caebc9d86e 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/hardware.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/hardware.c @@ -92,7 +92,7 @@ extern char reactos_arc_strings[32][256]; static VOID __StallExecutionProcessor(ULONG Loops) { - volatile register unsigned int i; + register volatile unsigned int i; for (i = 0; i < Loops; i++); } diff --git a/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c b/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c index 45358cf5336..640682821fa 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c @@ -544,11 +544,11 @@ XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY Geometry) } else { - for (i = 15; i >= 0; i--) + for (i = 1 << 15; i; i /= 2) { - if (0 != (DrvParms.BytesPerSector & (1 << i))) + if (0 != (DrvParms.BytesPerSector & i)) { - Geometry->BytesPerSector = 1 << i; + Geometry->BytesPerSector = i; break; } } diff --git a/reactos/boot/freeldr/freeldr/fs/ntfs.c b/reactos/boot/freeldr/freeldr/fs/ntfs.c index 05aeba96800..5592cd3730e 100644 --- a/reactos/boot/freeldr/freeldr/fs/ntfs.c +++ b/reactos/boot/freeldr/freeldr/fs/ntfs.c @@ -258,7 +258,7 @@ static ULONGLONG NtfsReadAttribute(PNTFS_ATTR_CONTEXT Context, ULONGLONG Offset, { CurrentOffset += DataRunLength * NtfsClusterSize; DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength); - if (DataRunLength != -1) + if (DataRunLength != (ULONGLONG)-1) { DataRunStartLCN = LastLCN + DataRunOffset; LastLCN = DataRunStartLCN; diff --git a/reactos/boot/freeldr/freeldr/reactos/reactos.c b/reactos/boot/freeldr/freeldr/reactos/reactos.c index 87680bbbd90..6c496a563d1 100644 --- a/reactos/boot/freeldr/freeldr/reactos/reactos.c +++ b/reactos/boot/freeldr/freeldr/reactos/reactos.c @@ -919,7 +919,7 @@ DbgPrint(const char *Format, ...) Length = _vsnprintf(Buffer, 512, Format, ap); /* Check if we went past the buffer */ - if (Length == -1) + if (Length == -1U) { /* Terminate it if we went over-board */ Buffer[sizeof(Buffer) - 1] = '\n'; diff --git a/reactos/boot/freeldr/freeldr/ui/gui.c b/reactos/boot/freeldr/freeldr/ui/gui.c index 556d3e077c5..f214a255923 100644 --- a/reactos/boot/freeldr/freeldr/ui/gui.c +++ b/reactos/boot/freeldr/freeldr/ui/gui.c @@ -99,4 +99,7 @@ const UIVTBL GuiVtbl = GuiFadeInBackdrop, GuiFadeOut, GuiDisplayMenu,*/ + NULL, NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL, NULL, NULL }; diff --git a/reactos/boot/freeldr/freeldr/windows/wlmemory.c b/reactos/boot/freeldr/freeldr/windows/wlmemory.c index b8d5d435863..8156f96a0b1 100644 --- a/reactos/boot/freeldr/freeldr/windows/wlmemory.c +++ b/reactos/boot/freeldr/freeldr/windows/wlmemory.c @@ -274,7 +274,7 @@ MempSetupPaging(IN ULONG StartPage, VOID MempDisablePages() { - int i; + ULONG i; // // We need to delete kernel mapping from memory areas which are