mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-10 00:40:02 +00:00
Fix get_variable
This commit is contained in:
parent
1a109376ab
commit
c08d0ceb05
2
shim.c
2
shim.c
@ -65,7 +65,7 @@ static EFI_STATUS get_variable (CHAR16 *name, EFI_GUID guid,
|
||||
char allocate = !!(*size);
|
||||
|
||||
efi_status = uefi_call_wrapper(RT->GetVariable, 5, name, &guid,
|
||||
&attributes, size, NULL);
|
||||
&attributes, size, buffer);
|
||||
|
||||
if (efi_status != EFI_BUFFER_TOO_SMALL || !allocate)
|
||||
return efi_status;
|
||||
|
Loading…
Reference in New Issue
Block a user