- BootLogo->SetBootLogo (BootLogo, LogoBlt, LogoDestX, LogoDestY, LogoWidth, LogoHeight);\r
+ //\r
+ // Attempt to register logo with Boot Logo 2 Protocol first\r
+ //\r
+ if (BootLogo2 != NULL) {\r
+ Status = BootLogo2->SetBootLogo (BootLogo2, LogoBlt, LogoDestX, LogoDestY, LogoWidth, LogoHeight);\r
+ }\r
+ //\r
+ // If Boot Logo 2 Protocol is not available or registration with Boot Logo 2\r
+ // Protocol failed, then attempt to register logo with Boot Logo Protocol\r
+ //\r
+ if (EFI_ERROR (Status) && BootLogo != NULL) {\r
+ Status = BootLogo->SetBootLogo (BootLogo, LogoBlt, LogoDestX, LogoDestY, LogoWidth, LogoHeight);\r
+ }\r
+ //\r
+ // Status of this function is EFI_SUCCESS even if registration with Boot\r
+ // Logo 2 Protocol or Boot Logo Protocol fails.\r
+ //\r
+ Status = EFI_SUCCESS;\r