https://git.reactos.org/?p=reactos.git;a=commitdiff;h=095510bdacabcd19c230a8...
commit 095510bdacabcd19c230a8211ba1ca65323b2b6d Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Jun 17 16:54:23 2023 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Mon Jun 19 21:08:59 2023 +0200
[FREELDR:UEFI] Fix two MSVC build warnings C4553.
In both lines 451 and 474: uefidisk.c: warning C4553: '==': result of expression not used; did you intend '='?
It's "funny" that GCC builds doesn't catch those... --- boot/freeldr/freeldr/arch/uefi/uefidisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/boot/freeldr/freeldr/arch/uefi/uefidisk.c b/boot/freeldr/freeldr/arch/uefi/uefidisk.c index 772cdece7ce..4905e2b867f 100644 --- a/boot/freeldr/freeldr/arch/uefi/uefidisk.c +++ b/boot/freeldr/freeldr/arch/uefi/uefidisk.c @@ -448,7 +448,7 @@ UefiSetupBlockDevices(VOID) /* Now only of the root drive number is equal to this drive we found above */ if (InternalUefiDisk[i].UefiRootNumber == UefiBootRootIdentifier) { - InternalUefiDisk[i].IsThisTheBootDrive == TRUE; + InternalUefiDisk[i].IsThisTheBootDrive = TRUE; PublicBootArcDisk = i; TRACE("Found Boot drive\n"); } @@ -471,7 +471,7 @@ UefiSetBootpath(VOID) if (bio->Media->RemovableMedia == TRUE && bio->Media->BlockSize == 2048) { /* Boot Partition 0xFF is the magic value that indicates booting from CD-ROM (see isoboot.S) */ - FrldrBootPartition == 0xFF; + FrldrBootPartition = 0xFF; RtlStringCbPrintfA(FrLdrBootPath, sizeof(FrLdrBootPath), "multi(0)disk(0)cdrom(%u)", PublicBootArcDisk); }