Skip to content

Commit

Permalink
OpenLegacyBoot: Fix CI build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Aug 14, 2023
1 parent 2e8456e commit 667d9c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Platform/OpenLegacyBoot/BiosDisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ InternalGetBiosDiskNumber (
return Status;
}

DeviceAddressPacket = (DEVICE_ADDRESS_PACKET *)DeviceAddressPacketAddress;
Buffer = (UINT8 *)DeviceAddressPacketAddress + 0x200;
DeviceAddressPacket = (DEVICE_ADDRESS_PACKET *)(UINTN)DeviceAddressPacketAddress;
Buffer = (UINT8 *)(UINTN)DeviceAddressPacketAddress + 0x200;

//
// Locate disk with matching checksum of first few sectors.
Expand Down
13 changes: 2 additions & 11 deletions Platform/OpenLegacyBoot/OpenLegacyBoot.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,9 @@ InternalFreePickerEntry (
FreePool ((CHAR8 *)Entry->Id);
}

if (Entry->Name != NULL) {
/*if (Entry->Name != NULL) {
FreePool ((CHAR8 *)Entry->Name);
}

if (Entry->Path != NULL) {
FreePool ((CHAR8 *)Entry->Path);
}

if (Entry->Arguments != NULL) {
FreePool ((CHAR8 *)Entry->Arguments);
}
}*/

if (Entry->Flavour != NULL) {
FreePool ((CHAR8 *)Entry->Flavour);
Expand Down Expand Up @@ -212,7 +204,6 @@ OcFreeLegacyBootEntries (
IN UINTN NumEntries
)
{
return;
UINTN Index;

ASSERT (Entries != NULL);
Expand Down

0 comments on commit 667d9c3

Please sign in to comment.