diff options
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk/Uc2OnUcThunk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk/Uc2OnUcThunk.c b/EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk/Uc2OnUcThunk.c index b8cfd5dc66..4ab74bad83 100644 --- a/EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk/Uc2OnUcThunk.c +++ b/EdkCompatibilityPkg/Compatibility/Uc2OnUcThunk/Uc2OnUcThunk.c @@ -248,10 +248,8 @@ UcNotificationEvent ( //
// Fill in rest of private data structure
//
- Private->UC2.SupportedLanguages = AllocateZeroPool (RFC_3066_ENTRY_SIZE);
- Status = ConvertIso639LanguageToRfc3066Language (Private->UC->SupportedLanguages, Private->UC2.SupportedLanguages);
-
- if (!EFI_ERROR (Status)) {
+ Private->UC2.SupportedLanguages = ConvertIso639LanguageToRfc3066Language (Private->UC->SupportedLanguages);
+ if (Private->UC2.SupportedLanguages != NULL) {
//
// Install Firmware Volume Protocol onto same handle
|