diff options
author | Marvin.Haeuser@outlook.com <Marvin.Haeuser@outlook.com> | 2018-05-05 22:23:55 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-05-17 15:22:16 +0800 |
commit | b6d5def2faf56334128ea2f056356d7e3852831e (patch) | |
tree | bff21ec7ba7b32abf6517f808176fe6c54bd52c9 /IntelFrameworkPkg/Library/FrameworkUefiLib | |
parent | 5b9626e8eb4d8b9d755a0ba94e14be2821fce4a1 (diff) | |
download | edk2-b6d5def2faf56334128ea2f056356d7e3852831e.zip edk2-b6d5def2faf56334128ea2f056356d7e3852831e.tar.gz edk2-b6d5def2faf56334128ea2f056356d7e3852831e.tar.bz2 |
IntelFrameworkPkg/FrameworkUefiLib: Add 'OUT' decorator where necessary.
The functions AddUnicodeString() and AddUnicodeString2() might return
a new value into their parameter UnicodeStringTable, hence add the
appropiate 'OUT' decorator.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'IntelFrameworkPkg/Library/FrameworkUefiLib')
-rw-r--r-- | IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c index 895ff39..61a32e2 100644 --- a/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c +++ b/IntelFrameworkPkg/Library/FrameworkUefiLib/UefiLib.c @@ -865,11 +865,10 @@ LookupUnicodeString2 ( **/
EFI_STATUS
EFIAPI
-AddUnicodeString (
- IN CONST CHAR8 *Language,
- IN CONST CHAR8 *SupportedLanguages,
- IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
- IN CONST CHAR16 *UnicodeString
+ IN CONST CHAR8 *Language,
+ IN CONST CHAR8 *SupportedLanguages,
+ IN OUT EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
+ IN CONST CHAR16 *UnicodeString
)
{
UINTN NumberOfEntries;
@@ -1043,11 +1042,11 @@ AddUnicodeString ( EFI_STATUS
EFIAPI
AddUnicodeString2 (
- IN CONST CHAR8 *Language,
- IN CONST CHAR8 *SupportedLanguages,
- IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
- IN CONST CHAR16 *UnicodeString,
- IN BOOLEAN Iso639Language
+ IN CONST CHAR8 *Language,
+ IN CONST CHAR8 *SupportedLanguages,
+ IN OUT EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
+ IN CONST CHAR16 *UnicodeString,
+ IN BOOLEAN Iso639Language
)
{
UINTN NumberOfEntries;
|