efi: Fix broken assignments of handles_size

This commit is contained in:
mintsuki 2022-07-01 09:07:45 +02:00
parent f9e90da2c2
commit 55199478db
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ void disk_create_index(void) {
EFI_GUID block_io_guid = BLOCK_IO_PROTOCOL;
EFI_HANDLE *handles = tmp_handles;
UINTN handles_size = 1;
UINTN handles_size = sizeof(EFI_HANDLE);
status = gBS->LocateHandle(ByProtocol, &block_io_guid, NULL, &handles_size, handles);

View File

@ -57,7 +57,7 @@ struct edid_info_struct *get_edid_info(void) {
EFI_HANDLE tmp_handles[1];
EFI_HANDLE *handles = tmp_handles;
UINTN handles_size = 1;
UINTN handles_size = sizeof(EFI_HANDLE);
EFI_GUID gop_guid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
status = gBS->LocateHandle(ByProtocol, &gop_guid, NULL, &handles_size, handles);