windows/platform.c: Fix compilation errors
This commit is contained in:
parent
4517db3592
commit
96dc8a6e2a
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);
|
set_efi_variable (varname, in, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
int
|
||||||
grub_install_register_efi (grub_device_t efidir_grub_dev,
|
grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||||
const char *efifile_path,
|
const char *efifile_path,
|
||||||
const char *efi_distributor)
|
const char *efi_distributor)
|
||||||
|
@ -363,7 +363,7 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||||
grub_util_error ("%s", grub_errmsg);
|
grub_util_error ("%s", grub_errmsg);
|
||||||
efidir_grub_dev->disk->partition = p;
|
efidir_grub_dev->disk->partition = p;
|
||||||
grub_memcpy (hddp->partition_signature,
|
grub_memcpy (hddp->partition_signature,
|
||||||
gptdata.guid, 16);
|
&gptdata.guid, 16);
|
||||||
|
|
||||||
hddp->partmap_type = 2;
|
hddp->partmap_type = 2;
|
||||||
hddp->signature_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_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));
|
set_efi_variable (L"BootOrder", new_boot_order, new_boot_order_len * sizeof (grub_uint16_t));
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue