Skip to content

Commit

Permalink
[BUGFIX] Fix setting default architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jul 12, 2024
1 parent 0694071 commit 32d67b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pe-bear/DisasmView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ void DisasmTreeView::setBitMode(QAction* action)
}
int bitmode = 0;
Executable::exe_arch arch = Executable::ARCH_UNKNOWN;
if (flags < 4) {
if (flags == 0) {
arch = Executable::ARCH_UNKNOWN;
}
else if (flags < 4) {
bitmode = 16<<(flags-1);
arch = Executable::ARCH_INTEL;
} else {
Expand Down

0 comments on commit 32d67b4

Please sign in to comment.