Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14519
6f19259b-4bc3-4df7-8a09-
765794883524
EFI_STATUS Status;\r
CHAR16 *Temp;\r
\r
+ Status = EFI_SUCCESS;\r
DEBUG_CODE_BEGIN();\r
\r
if (Mapping != NULL) {\r
\r
CopyMem (TempByteBuffer, Desc, DescSize);\r
TempByteBuffer += DescSize;\r
+ ASSERT (FilePath != NULL);\r
CopyMem (TempByteBuffer, FilePath, FilePathSize);\r
\r
UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation);\r
\r
CopyMem (TempByteBuffer, Desc, DescSize);\r
TempByteBuffer += DescSize;\r
+ ASSERT (FilePath != NULL);\r
CopyMem (TempByteBuffer, FilePath, FilePathSize);\r
\r
UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation);\r