Skip to content

Commit

Permalink
remain compatible with older SDK versions (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeggor authored Dec 5, 2024
1 parent 42dbd39 commit bc5f930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions efiXplorer/efi_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,12 @@ class efi_analyser_x86_t : public efi_analyser_t {
import_type(idati, -1, "EFI_SMM_VARIABLE_PROTOCOL");
import_type(idati, -1, "MACRO_VARIABLE_ATTRIBUTE");

#if IDA_SDK_VERSION >= 900
tinfo_t tinfo;
if (tinfo.get_named_type(idati, "MACRO_EFI")) {
m_macro_efi_tid = tinfo.force_tid();
}
#endif

#ifdef HEX_RAYS
for (auto idx = 0; idx < get_entry_qty(); idx++) {
Expand Down Expand Up @@ -436,10 +438,12 @@ class efi_analyser_arm_t : public efi_analyser_t {
import_type(idati, -1, "EFI_SYSTEM_TABLE");
import_type(idati, -1, "MACRO_VARIABLE_ATTRIBUTE");

#if IDA_SDK_VERSION >= 900
tinfo_t tinfo;
if (tinfo.get_named_type(idati, "MACRO_EFI")) {
m_macro_efi_tid = tinfo.force_tid();
}
#endif
}

~efi_analyser_arm_t() {
Expand Down

0 comments on commit bc5f930

Please sign in to comment.