]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
windows/platform.c: Fix compilation errors
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Mar 2019 13:19:27 +0000 (14:19 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 7 Mar 2019 13:19:27 +0000 (14:19 +0100)
grub-core/osdep/windows/platform.c

index 912269191ebf65a1e0ab50d5cd1f21b4614fd78b..7eb53fe01b4bba5f96d0d78020e4c86af9cea8b8 100644 (file)
@@ -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