[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...
This commit is contained in:
Hermès Bélusca-Maïto 2023-06-17 16:54:23 +02:00
parent 38e4b859e2
commit 095510bdac
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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);
}