IntelFrameworkModulePkg: 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: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Dynamically update the pages.
|
||||
|
||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -844,11 +844,17 @@ UpdateConModePage (
|
||||
//
|
||||
// Build mode string Column x Row
|
||||
//
|
||||
UnicodeValueToString (ModeString, 0, Col, 0);
|
||||
UnicodeValueToStringS (ModeString, sizeof (ModeString), 0, Col, 0);
|
||||
PStr = &ModeString[0];
|
||||
StrCatS (PStr, ARRAY_SIZE (ModeString), L" x ");
|
||||
PStr = PStr + StrLen (PStr);
|
||||
UnicodeValueToString (PStr , 0, Row, 0);
|
||||
UnicodeValueToStringS (
|
||||
PStr,
|
||||
sizeof (ModeString) - ((UINTN)PStr - (UINTN)&ModeString[0]),
|
||||
0,
|
||||
Row,
|
||||
0
|
||||
);
|
||||
|
||||
ModeToken[Index] = HiiSetString (CallbackData->BmmHiiHandle, 0, ModeString, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user