mirror of https://github.com/acidanthera/audk.git
Fix build fail for DDK.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13212 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
28186d4566
commit
c3d561fd4b
|
@ -999,7 +999,7 @@ ProcessHelpString (
|
|||
//
|
||||
// Get row number of the String.
|
||||
//
|
||||
for (Index = 0; GetLineByWidth (StringPtr, (UINTN) gHelpBlockWidth - 1, &Index, &OutputString) != 0x0000; ) {
|
||||
for (Index = 0; GetLineByWidth (StringPtr, (UINT16) (gHelpBlockWidth - 1), &Index, &OutputString) != 0x0000; ) {
|
||||
TotalRowNum ++;
|
||||
FreePool (OutputString);
|
||||
}
|
||||
|
@ -1007,7 +1007,7 @@ ProcessHelpString (
|
|||
*FormattedString = AllocateZeroPool (TotalRowNum * gHelpBlockWidth * sizeof (CHAR16) * 2);
|
||||
ASSERT (*FormattedString != NULL);
|
||||
|
||||
for (Index = 0; GetLineByWidth (StringPtr, (UINTN) gHelpBlockWidth - 1, &Index, &OutputString) != 0x0000; CheckedNum ++) {
|
||||
for (Index = 0; GetLineByWidth (StringPtr, (UINT16) (gHelpBlockWidth - 1), &Index, &OutputString) != 0x0000; CheckedNum ++) {
|
||||
CopyMem (*FormattedString + CheckedNum * gHelpBlockWidth * sizeof (CHAR16), OutputString, gHelpBlockWidth * sizeof (CHAR16));
|
||||
FreePool (OutputString);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue