From nobody Mon Dec 23 05:22:56 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1519750039365658.4357320371903; Tue, 27 Feb 2018 08:47:19 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EE54622436956; Tue, 27 Feb 2018 08:41:11 -0800 (PST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068019.outbound.protection.outlook.com [40.92.68.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D6140222DE146 for ; Tue, 27 Feb 2018 08:41:09 -0800 (PST) Received: from VE1EUR02FT055.eop-EUR02.prod.protection.outlook.com (10.152.12.54) by VE1EUR02HT020.eop-EUR02.prod.protection.outlook.com (10.152.13.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.485.12; Tue, 27 Feb 2018 16:47:13 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com (10.152.12.60) by VE1EUR02FT055.mail.protection.outlook.com (10.152.13.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15 via Frontend Transport; Tue, 27 Feb 2018 16:47:12 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::7d81:9d96:1051:d20d]) by AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::7d81:9d96:1051:d20d%14]) with mapi id 15.20.0527.021; Tue, 27 Feb 2018 16:47:12 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.68.19; helo=eur02-he1-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9k1wwhOGlQGb30SXzPgikiUXc24RsigQFsRkbHryK2c=; b=UmFz8/et7ouZI0VanO8QLBoPtubhE484ALnDT9U2sRFgF2xLmM5ImwjO6FnjPE28Q9FkUhdpWTgzyIxr1et8B1lHFTYc1PLHDUKiv2BJNq6UyqRvRnXyTTdmBRVJBNDeUrshRS9UhhWVivVldIOrexpInEnOzZMHf0iMj1JadJdztIK6UAweekSUFdMlaYsq6RBG8uZIYepluMNLsj/NXHl7EChxZzFcHk6Q10NJmzyb1tXH21rNrgwQB9NFDD8ZsEBr04YSLjHOJBqCXh9ZEmdIp9f1O9ihwWOCy8DwV3kNSg9LeqPHi6USGeNw+qkGWTXTs4dARViFFiL3CFVAkg== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] MdePkg/UefiLib: Add 'OUT' decorator where necessary. Thread-Index: AQHTr+qdV86YEVqNI0ubZW7MC9x1pQ== Date: Tue, 27 Feb 2018 16:47:12 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:A5C2B2DC3EB1F9506B25FBF408E4E660199F84ADD2BC8CB94D3ECCA5E88552FD; UpperCasedChecksum:6FBE7F01BF986677980264236A5AE8AE7A65828DC57EEBB0F4C3723519A3BC05; SizeAsReceived:7108; Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ErZE0ewW/+4ZEqnx5NkniSr69599UKnb] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VE1EUR02HT020; 6:ox1k25mAqjUeIIEQIXIIFvoAM8/XE4NtyTygxdU49XynHUzhkw/4etHEHhi2ejl50EOx5kGoDNAlU6l5UlyLIseSyN6UKQFDVZhHK802z14HQ/HK3UXwswNPw5FTDFod744PCc06Ruv+7cqom0n/pYgy0nQxKwVTYQL/RiC9n0QyvTJfVvL6yLeir3JbvDXCckS+a/xphFassCPhl17FMx2xYYxQzUx6c0aeeKYcPRl6Q1FR4yIqTv5sA4yajSEw9yTI0EdrZDOqmDtyL/suibevJpHdckq5Po+1rp/3D6Nhu4sg79dQdt2+BvlVcxKkNyVoFbwSzgUkqeJ/oPq7ZEOs5lzC9TECKVHFQHkd5mk=; 5:4/ObCOM0XBJyqwehjCCeRtlnuAZFoIOb3QQqM5xREhvAeyomqqmvR02X/iYjogS3GsaQfwTEqBso6qL/V/84aZ3sSQmNMcbjF7oF727NnbXsevYeczQDd8h6gn2II1vsbSuwrav5OJrMQhgaONKx0yImwqNQ2O8ZhNxJwg+J7fc=; 24:7m/uz8SEdzbs4j8crH4IVYZdHXrS3R0inJPUaG5BuTQsIHNc50co7XM9FjLUxX+n4Cz6BWl94lcWfY4oqKcj5/kI4vcbrDfkB4ShycOZQXM=; 7:2IF1Hnh3Hs9KyeeNHs4j968U9RsKriwuOF0cokTLLQmF8sEeeNwrSJd2jxtNj0APpOI8rjWzISGkF7hiwYTSJsgFbljvcfQ1jIsFxL0K1ueJAfj/S/3Jy6e/rX3uIULputQDZBZZRRvbF2JJ3oK7NRODtgGO6XB/qCsJxtAezcIYkmhpywfIhZBwZ/pYgj0bWeatTK3GWFToQyORmXfI+BNcf9Ev/BznsjWPfehVPYE37mK+aCEVr0tyZIE31wTf x-incomingheadercount: 45 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:VE1EUR02HT020; x-ms-traffictypediagnostic: VE1EUR02HT020: x-ms-office365-filtering-correlation-id: 5cd2f701-76e9-4d63-ba90-08d57e01bf45 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:VE1EUR02HT020; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR02HT020; x-forefront-prvs: 05961EBAFC x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:VE1EUR02HT020; H:AM4PR06MB1491.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5cd2f701-76e9-4d63-ba90-08d57e01bf45 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2018 16:47:12.5784 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT020 Subject: [edk2] [PATCH] MdePkg/UefiLib: Add 'OUT' decorator where necessary. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "michael.d.kinney@intel.com" , "liming.gao@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 --- MdePkg/Library/UefiLib/UefiLib.c | 18 +++++++++--------- MdePkg/Include/Library/UefiLib.h | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/MdePkg/Library/UefiLib/UefiLib.c b/MdePkg/Library/UefiLib/Uefi= Lib.c index f1a3f1c7af05..ba449a1c34ce 100644 --- a/MdePkg/Library/UefiLib/UefiLib.c +++ b/MdePkg/Library/UefiLib/UefiLib.c @@ -888,10 +888,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; @@ -1065,11 +1065,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; diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/Uefi= Lib.h index 54bc2cc5a334..256498e3fd8d 100644 --- a/MdePkg/Include/Library/UefiLib.h +++ b/MdePkg/Include/Library/UefiLib.h @@ -587,10 +587,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 ); =20 /** @@ -638,11 +638,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 ); =20 /** --=20 2.16.0.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel