src: pefile: add checkMachine()

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-21 20:33:40 +01:00
parent e1edc5f50a
commit 3d691645a4
7 changed files with 44 additions and 6 deletions
+4 -1
View File
@@ -60,7 +60,10 @@ const int *PackW64PeArm64::getFilters() const { return nullptr; }
**************************************************************************/
bool PackW64PeArm64::canPack() {
if (!readFileHeader() || ih.cpu != IMAGE_FILE_MACHINE_ARM64)
if (!readFileHeader())
return false;
checkMachine(ih.cpu);
if (ih.cpu != IMAGE_FILE_MACHINE_ARM64)
return false;
throwCantPack("not yet implemented");
return true;