std/os/uefi: fix Guid alignment in rng protocol

This commit is contained in:
Nick Erdmann 2019-09-28 00:49:15 +02:00 committed by Andrew Kelley
parent bd46c1c328
commit ff9c3c6e5b

View file

@ -10,7 +10,7 @@ pub const RNGProtocol = extern struct {
return self._get_info(self, list_size, list);
}
pub fn getRNG(self: *const RNGProtocol, algo: ?*const Guid, value_length: usize, value: [*]u8) usize {
pub fn getRNG(self: *const RNGProtocol, algo: ?*align(8) const Guid, value_length: usize, value: [*]u8) usize {
return self._get_rng(self, algo, value_length, value);
}