Skip to content

Commit

Permalink
The legacy interface makes DataSize "unsigned long" not uint64_t.
Browse files Browse the repository at this point in the history
This probably hasn't ever been tested on i386 before, but Steve McIntyre
did and it didn't work, because kernel says "unsigned long" for
DataSize, and we have uint64_t.

This should fix issue #11 .
  • Loading branch information
vathpela committed Dec 16, 2014
1 parent 6eb1fcb commit 487a9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vars.c
Expand Up @@ -34,7 +34,7 @@
typedef struct efi_kernel_variable_t {
uint16_t VariableName[1024/sizeof(uint16_t)];
efi_guid_t VendorGuid;
uint64_t DataSize;
unsigned long DataSize;
uint8_t Data[1024];
efi_status_t Status;
uint32_t Attributes;
Expand Down

0 comments on commit 487a9ea

Please sign in to comment.