#include <Library/UefiLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/HiiLib.h>\r
-\r
-\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/LanguageLib.h>\r
\r
/**\r
Performs a case-insensitive comparison of two Null-terminated Unicode \r
//\r
// Fill in rest of private data structure\r
//\r
- Private->UC.SupportedLanguages = AllocateZeroPool (ISO_639_2_ENTRY_SIZE + 1);\r
- Status = ConvertRfc3066LanguageToIso639Language (Private->UC2->SupportedLanguages, Private->UC.SupportedLanguages);\r
+ Private->UC.SupportedLanguages = ConvertLanguagesRfc4646ToIso639 (Private->UC2->SupportedLanguages);\r
\r
- if (!EFI_ERROR (Status)) {\r
+ if (Private->UC.SupportedLanguages != NULL) {\r
\r
//\r
// Install Firmware Volume Protocol onto same handle\r