BootOption.VariableSize was left uninitialized.

This commit is contained in:
jief 2020-04-28 15:19:28 +03:00
parent 2135d2706b
commit 2ff93a346a

View File

@ -435,6 +435,7 @@ SetBootCurrent(REFIT_MENU_ITEM_BOOTNUM *Entry)
//decode the variable
BootOption.Variable = BootVariable;
BootOption.VariableSize = VarSize;
ParseBootOption (&BootOption);
if ((BootOption.OptionalDataSize == 0) ||