Fix GCC build failure.

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
This commit is contained in:
Ruiyu Ni 2013-07-30 06:41:43 +00:00 committed by niruiyu
parent 5d71a30480
commit e3df6949e7
3 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,7 @@ InternalShellProtocolDebugPrintMessage (
EFI_STATUS Status; EFI_STATUS Status;
CHAR16 *Temp; CHAR16 *Temp;
Status = EFI_SUCCESS;
DEBUG_CODE_BEGIN(); DEBUG_CODE_BEGIN();
if (Mapping != NULL) { if (Mapping != NULL) {

View File

@ -525,6 +525,7 @@ BcfgAddDebug1(
CopyMem (TempByteBuffer, Desc, DescSize); CopyMem (TempByteBuffer, Desc, DescSize);
TempByteBuffer += DescSize; TempByteBuffer += DescSize;
ASSERT (FilePath != NULL);
CopyMem (TempByteBuffer, FilePath, FilePathSize); CopyMem (TempByteBuffer, FilePath, FilePathSize);
UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation); UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation);

View File

@ -523,6 +523,7 @@ BcfgAddInstall1(
CopyMem (TempByteBuffer, Desc, DescSize); CopyMem (TempByteBuffer, Desc, DescSize);
TempByteBuffer += DescSize; TempByteBuffer += DescSize;
ASSERT (FilePath != NULL);
CopyMem (TempByteBuffer, FilePath, FilePathSize); CopyMem (TempByteBuffer, FilePath, FilePathSize);
UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation); UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation);