chainload: LoadOptionsSize should be in bytes. Fixes #254

This commit is contained in:
mintsuki 2023-03-08 15:40:11 +01:00
parent ca69475609
commit 828e3790a4

View File

@ -292,7 +292,7 @@ noreturn void efi_chainload_file(char *config, char *cmdline, struct file_handle
new_handle_loaded_image->DeviceHandle = efi_part_handle;
}
new_handle_loaded_image->LoadOptionsSize = cmdline_len;
new_handle_loaded_image->LoadOptionsSize = cmdline_len * sizeof(CHAR16);
new_handle_loaded_image->LoadOptions = new_cmdline;
UINTN exit_data_size = 0;