From 095510bdacabcd19c230a8211ba1ca65323b2b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 17 Jun 2023 16:54:23 +0200 Subject: [PATCH] [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); }