]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg UefiDpLib: Use correct string length for the input UnicodeBuffer
authorStar Zeng <star.zeng@intel.com>
Wed, 4 Nov 2015 01:56:29 +0000 (01:56 +0000)
committerlzeng14 <lzeng14@Edk2>
Wed, 4 Nov 2015 01:56:29 +0000 (01:56 +0000)
Same as the beginning of function to use DP_GAUGE_STRING_LENGTH, but not
DXE_PERFORMANCE_STRING_LENGTH.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18725 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiDpLib/DpUtilities.c

index 5237459e5b005f2d9a490afc16c9b34e2de9bac1..e9d8fb3adf31e363ffb67a2bdfcb202e9b7a2a16 100644 (file)
@@ -164,8 +164,8 @@ DpGetShortPdbFileName (
     for (IndexA = StartIndex; IndexA < EndIndex; IndexA++) {\r
       UnicodeBuffer[IndexU] = (CHAR16) PdbFileName[IndexA];\r
       IndexU++;\r
-      if (IndexU >= DXE_PERFORMANCE_STRING_LENGTH) {\r
-        UnicodeBuffer[DXE_PERFORMANCE_STRING_LENGTH] = 0;\r
+      if (IndexU >= DP_GAUGE_STRING_LENGTH) {\r
+        UnicodeBuffer[DP_GAUGE_STRING_LENGTH] = 0;\r
         break;\r
       }\r
     }\r