diff options
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Fonts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Fonts.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Fonts.c index 49c82b91df..236029671b 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Fonts.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Fonts.c @@ -87,13 +87,10 @@ HiiGetGlyph ( &BaseLine
);
- if (!EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status) && (Status != EFI_WARN_UNKNOWN_GLYPH)) {
//
// For simplicity, we only handle Narrow Glyph.
//
- ASSERT (Blt->Height == EFI_GLYPH_HEIGHT);
- ASSERT (Blt->Width == EFI_GLYPH_WIDTH);
-
if (Blt->Height == EFI_GLYPH_HEIGHT && Blt->Width == EFI_GLYPH_WIDTH) {
ZeroMem (&mNarrowGlyphBuffer, sizeof (mNarrowGlyphBuffer));
@@ -115,7 +112,10 @@ HiiGetGlyph ( }
- if (EFI_ERROR (Status)) {
+ if (EFI_ERROR (Status) || (Status == EFI_WARN_UNKNOWN_GLYPH)) {
+ if (Status == EFI_WARN_UNKNOWN_GLYPH) {
+ Status = EFI_NOT_FOUND;
+ }
*GlyphBuffer = NULL;
}
return Status;
|