diff options
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c | 8 | ||||
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c index d8201ce542..0595db776f 100644 --- a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c +++ b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.c @@ -13,10 +13,13 @@ **/
+#include <Uefi.h>
+
+#include <Library/LanguageLib.h>
+
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
-#include <Library/LanguageLib.h>
//
// Lookup table of ISO639-2 3 character language codes to ISO 639-1 2 character language codes
@@ -238,7 +241,7 @@ InternalLanguageLibToLower ( )
{
for (; Length > 0; Length--, Destination++, Source++) {
- *Destination = (*Source >= 'A' && *Source <= 'Z') ? (CHAR8)(*Source + ('a' - 'A')) : *Source;
+ *Destination = (CHAR8)((*Source >= 'A' && *Source <= 'Z') ? *Source + ('a' - 'A') : *Source);
}
}
@@ -496,4 +499,3 @@ ConvertLanguagesRfc4646ToIso639 ( Iso639Languages[Iso639Index] = '\0';
return Iso639Languages;
}
-
diff --git a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf index 1b4aed2777..8b2959972d 100644 --- a/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf +++ b/EdkCompatibilityPkg/Compatibility/Library/LanguageLib.inf @@ -22,8 +22,7 @@ FILE_GUID = 283cad13-a151-4d55-be2d-96ea57392a82
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
- LIBRARY_CLASS = LanguageLib|DXE_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER
-
+ LIBRARY_CLASS = LanguageLib|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_SAL_DRIVER UEFI_APPLICATION UEFI_DRIVER
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
@@ -37,7 +36,6 @@ EdkCompatibilityPkg/EdkCompatibilityPkg.dec
[LibraryClasses]
- MemoryAllocationLib
BaseLib
DebugLib
-
+ MemoryAllocationLib
|