efi: Fix broken assignments of handles_size
This commit is contained in:
parent
f9e90da2c2
commit
55199478db
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user