mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-23 09:47:44 +02:00
MdePkg/BasePeCoffLib2: Slight adjustments
This commit is contained in:
parent
24c3bf2c4b
commit
d1d136dfcd
@ -206,7 +206,6 @@ PeCoffGetPdbPath (
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DEBUG_RAISE ();
|
|
||||||
return RETURN_UNSUPPORTED;
|
return RETURN_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@ -68,6 +68,7 @@ InternalVerifySections (
|
|||||||
// Images without Sections have no usable data, disallow them.
|
// Images without Sections have no usable data, disallow them.
|
||||||
//
|
//
|
||||||
if (Context->NumberOfSections == 0) {
|
if (Context->NumberOfSections == 0) {
|
||||||
|
DEBUG_RAISE ();
|
||||||
return RETURN_VOLUME_CORRUPTED;
|
return RETURN_VOLUME_CORRUPTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,7 +275,7 @@ InternalValidateRelocInfo (
|
|||||||
//
|
//
|
||||||
// If the Base Relocations have not been stripped, verify their Directory.
|
// 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.
|
// Verify the Relocation Directory is not empty.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user