windows/platform.c: Fix compilation errors
This commit is contained in:
parent
35b909062e
commit
41121742df
1 changed files with 4 additions and 2 deletions
|
@ -201,7 +201,7 @@ set_efi_variable_bootn (grub_uint16_t n, void *in, grub_size_t len)
|
|||
set_efi_variable (varname, in, len);
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||
const char *efifile_path,
|
||||
const char *efi_distributor)
|
||||
|
@ -363,7 +363,7 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
grub_util_error ("%s", grub_errmsg);
|
||||
efidir_grub_dev->disk->partition = p;
|
||||
grub_memcpy (hddp->partition_signature,
|
||||
gptdata.guid, 16);
|
||||
&gptdata.guid, 16);
|
||||
|
||||
hddp->partmap_type = 2;
|
||||
hddp->signature_type = 2;
|
||||
|
@ -407,6 +407,8 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
|||
|
||||
set_efi_variable_bootn (order_num, entry, (grub_uint8_t *) pathptr - entry);
|
||||
set_efi_variable (L"BootOrder", new_boot_order, new_boot_order_len * sizeof (grub_uint16_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue