Revision: 19399
http://sourceforge.net/p/edk2/code/19399
Author: vanjeff
Date: 2015-12-18 07:32:50 +0000 (Fri, 18 Dec 2015)
Log Message:
-----------
ShellPkg UefiDpLib: Use correct string length for the input UnicodeBuffer
Same as the beginning of function to use DP_GAUGE_STRING_LENGTH, but not
DXE_PERFORMANCE_STRING_LENGTH.
(Sync patch r18725 from main trunk.)
Cc: Jaben Carsey <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18725
Modified Paths:
--------------
branches/UDK2015/ShellPkg/Library/UefiDpLib/DpUtilities.c
Modified: branches/UDK2015/ShellPkg/Library/UefiDpLib/DpUtilities.c
===================================================================
--- branches/UDK2015/ShellPkg/Library/UefiDpLib/DpUtilities.c 2015-12-18
07:32:17 UTC (rev 19398)
+++ branches/UDK2015/ShellPkg/Library/UefiDpLib/DpUtilities.c 2015-12-18
07:32:50 UTC (rev 19399)
@@ -164,8 +164,8 @@
for (IndexA = StartIndex; IndexA < EndIndex; IndexA++) {
UnicodeBuffer[IndexU] = (CHAR16) PdbFileName[IndexA];
IndexU++;
- if (IndexU >= DXE_PERFORMANCE_STRING_LENGTH) {
- UnicodeBuffer[DXE_PERFORMANCE_STRING_LENGTH] = 0;
+ if (IndexU >= DP_GAUGE_STRING_LENGTH) {
+ UnicodeBuffer[DP_GAUGE_STRING_LENGTH] = 0;
break;
}
}
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits