diff options
Diffstat (limited to 'view')
| -rw-r--r-- | view/pe/teview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/pe/teview.cpp b/view/pe/teview.cpp index 1e89ed23..5e0a2a0e 100644 --- a/view/pe/teview.cpp +++ b/view/pe/teview.cpp @@ -259,7 +259,19 @@ bool TEView::Init() } } + if (!platform) + { + LogError("Platform not supported by this version of Binary Ninja"); + return false; + } + m_arch = platform->GetArchitecture(); + if (!m_arch) + { + LogError("Architecture not supported by this version of Binary Ninja"); + return false; + } + SetDefaultPlatform(platform); SetDefaultArchitecture(m_arch); |
