Fix up for new CompareGuid

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2024-07-28 16:01:17 +01:00
parent a093fe0378
commit c14705b746
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
3 changed files with 3 additions and 3 deletions

View File

@ -543,7 +543,7 @@ _DevPathVendor (
}
CatPrint(Str, u"Ven%s(%g", Type, &Vendor->Guid);
if (CompareGuid (&Vendor->Guid, &UnknownDevice) == 0) {
if (CompareGuid (&Vendor->Guid, &UnknownDevice)) {
//
// GUID used by EFI to enumerate an EDD 1.1 device
//

View File

@ -225,7 +225,7 @@ LibLocateHandleByDiskSignature (
}
break;
case SIGNATURE_TYPE_GUID:
if (CompareGuid((EFI_GUID *)Signature,(EFI_GUID *)(&(HardDriveDevicePath->Signature[0]))) == 0) {
if (CompareGuid((EFI_GUID *)Signature,(EFI_GUID *)(&(HardDriveDevicePath->Signature[0])))) {
Match = TRUE;
}
break;

View File

@ -526,7 +526,7 @@ LibGetSystemConfigurationTable(
UINTN Index;
for(Index=0;Index<ST->NumberOfTableEntries;Index++) {
if (CompareGuid(TableGuid,&(ST->ConfigurationTable[Index].VendorGuid))==0) {
if (CompareGuid(TableGuid,&(ST->ConfigurationTable[Index].VendorGuid))) {
*Table = ST->ConfigurationTable[Index].VendorTable;
return EFI_SUCCESS;
}