MdePkg/BasePeCoffLib2: Slight adjustments

This commit is contained in:
Marvin Häuser 2023-05-20 15:43:06 +02:00 committed by MikhailKrichanov
parent 24c3bf2c4b
commit d1d136dfcd
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,6 @@ PeCoffGetPdbPath (
break;
default:
DEBUG_RAISE ();
return RETURN_UNSUPPORTED;
}
//

View File

@ -68,6 +68,7 @@ InternalVerifySections (
// Images without Sections have no usable data, disallow them.
//
if (Context->NumberOfSections == 0) {
DEBUG_RAISE ();
return RETURN_VOLUME_CORRUPTED;
}
@ -274,7 +275,7 @@ InternalValidateRelocInfo (
//
// If the Base Relocations have not been stripped, verify their Directory.
//
if (!Context->RelocsStripped && Context->RelocDirSize != 0) {
if (Context->RelocDirSize != 0) {
//
// Verify the Relocation Directory is not empty.
//