REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2608
According to logic and the practice, it is need to allocate ascii length
by 2 for unicode string.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
// Before we can start, change test name from ASCII to Unicode.\r
//\r
CacheFilePathLength = AsciiStrLen (Framework->ShortTitle) + 1;\r
- TestName = AllocatePool (CacheFilePathLength);\r
+ TestName = AllocatePool (CacheFilePathLength * sizeof(CHAR16));\r
if (!TestName) {\r
goto Exit;\r
}\r