OpenCanopy: Fix animation linked list behaviour on Canopy restart
@@ -136,7 +136,7 @@ InternalBootPickerAnimateLabel (
}
STATIC GUI_ANIMATION mBootPickerLabelAnimation = {
- INITIALIZE_LIST_HEAD_VARIABLE (mBootPickerLabelAnimation.Link),
+ { NULL, NULL },
NULL,
InternalBootPickerAnimateLabel
};
@@ -1831,7 +1831,7 @@ InternalBootPickerAnimateTimeout (
}
STATIC GUI_ANIMATION mBootPickerIntroAnimation = {
- INITIALIZE_LIST_HEAD_VARIABLE (mBootPickerIntroAnimation.Link),
+ { NULL, NULL },
NULL,
InternalBootPickerAnimateIntro
};
@@ -1990,6 +1990,8 @@ BootPickerViewInitialize (
// Conditions for delta function:
//
+ InitializeListHead (&mBootPickerLabelAnimation.Link);
+
if (!GuiContext->DoneIntroAnimation) {
InitBpAnimIntro (DrawContext);
InsertHeadList (&DrawContext->Animations, &mBootPickerIntroAnimation.Link);
