Signed-off-by: Dong Eric <eric.dong@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13192
6f19259b-4bc3-4df7-8a09-
765794883524
if (ValueStr != NULL) {\r
(*Data)->AlgoInfo.EspAlgoInfo.AuthKeyLength = AuthKeyLength;\r
AsciiStr = AllocateZeroPool (AuthKeyLength + 1);\r
if (ValueStr != NULL) {\r
(*Data)->AlgoInfo.EspAlgoInfo.AuthKeyLength = AuthKeyLength;\r
AsciiStr = AllocateZeroPool (AuthKeyLength + 1);\r
+ ASSERT (AsciiStr != NULL);\r
UnicodeStrToAsciiStr (ValueStr, AsciiStr);\r
CopyMem ((*Data)->AlgoInfo.EspAlgoInfo.AuthKey, AsciiStr, AuthKeyLength);\r
FreePool (AsciiStr);\r
UnicodeStrToAsciiStr (ValueStr, AsciiStr);\r
CopyMem ((*Data)->AlgoInfo.EspAlgoInfo.AuthKey, AsciiStr, AuthKeyLength);\r
FreePool (AsciiStr);\r