SignedCapsulePkg: Replace [Ascii|Unicode]ValueToString
It is the follow up of commits 51f0ceb..9e32e97 to replace AsciiValueToString/UnicodeValueToString with AsciiValueToStringS/UnicodeValueToStringS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
Parse the INI configuration file and pass the information to the recovery driver
|
Parse the INI configuration file and pass the information to the recovery driver
|
||||||
so that the driver can perform recovery accordingly.
|
so that the driver can perform recovery accordingly.
|
||||||
|
|
||||||
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
@ -85,7 +85,13 @@ ParseRecoveryDataFile (
|
|||||||
// Get the section name of each update
|
// Get the section name of each update
|
||||||
//
|
//
|
||||||
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Recovery");
|
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Recovery");
|
||||||
AsciiValueToString(Entry + AsciiStrLen(Entry), 0, Index, 0);
|
AsciiValueToStringS (
|
||||||
|
Entry + AsciiStrnLenS (Entry, MAX_LINE_LENGTH),
|
||||||
|
MAX_LINE_LENGTH - AsciiStrnLenS (Entry, MAX_LINE_LENGTH),
|
||||||
|
0,
|
||||||
|
Index,
|
||||||
|
0
|
||||||
|
);
|
||||||
Status = GetStringFromDataFile(
|
Status = GetStringFromDataFile(
|
||||||
Context,
|
Context,
|
||||||
"Head",
|
"Head",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Parse the INI configuration file and pass the information to the update driver
|
Parse the INI configuration file and pass the information to the update driver
|
||||||
so that the driver can perform update accordingly.
|
so that the driver can perform update accordingly.
|
||||||
|
|
||||||
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
@ -86,7 +86,13 @@ ParseUpdateDataFile (
|
|||||||
// Get the section name of each update
|
// Get the section name of each update
|
||||||
//
|
//
|
||||||
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update");
|
AsciiStrCpyS (Entry, MAX_LINE_LENGTH, "Update");
|
||||||
AsciiValueToString(Entry + AsciiStrLen(Entry), 0, Index, 0);
|
AsciiValueToStringS (
|
||||||
|
Entry + AsciiStrnLenS (Entry, MAX_LINE_LENGTH),
|
||||||
|
MAX_LINE_LENGTH - AsciiStrnLenS (Entry, MAX_LINE_LENGTH),
|
||||||
|
0,
|
||||||
|
Index,
|
||||||
|
0
|
||||||
|
);
|
||||||
Status = GetStringFromDataFile(
|
Status = GetStringFromDataFile(
|
||||||
Context,
|
Context,
|
||||||
"Head",
|
"Head",
|
||||||
|
Reference in New Issue
Block a user