Increase source portability by replace the use of EFI_STATUS_CODE_DATA_MAX_SIZE with sizeof(Buffer)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8435 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney
2009-06-01 22:41:57 +00:00
parent b088ba369e
commit 1ca88083d4
3 changed files with 19 additions and 19 deletions

View File

@ -78,12 +78,12 @@ DebugPrint (
//
// If the TotalSize is larger than the maximum record size, then ASSERT()
//
ASSERT (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE);
ASSERT (TotalSize <= sizeof (Buffer));
//
// If the TotalSize is larger than the maximum record size, then return
//
if (TotalSize > EFI_STATUS_CODE_DATA_MAX_SIZE) {
if (TotalSize > sizeof (Buffer)) {
return;
}
@ -259,7 +259,7 @@ DebugAssert (
FileNameLength = AsciiStrLen (FileName);
DescriptionLength = AsciiStrLen (Description);
TotalSize = sizeof (EFI_DEBUG_ASSERT_DATA) + FileNameLength + 1 + DescriptionLength + 1;
if (TotalSize <= EFI_STATUS_CODE_DATA_MAX_SIZE) {
if (TotalSize <= sizeof (Buffer)) {
//
// Fill in EFI_DEBUG_ASSERT_DATA
//