diff options
Diffstat (limited to 'examples/llil_parser/src/llil_parser.cpp')
| -rw-r--r-- | examples/llil_parser/src/llil_parser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/llil_parser/src/llil_parser.cpp b/examples/llil_parser/src/llil_parser.cpp index 7566d4f1..af05c8f6 100644 --- a/examples/llil_parser/src/llil_parser.cpp +++ b/examples/llil_parser/src/llil_parser.cpp @@ -292,7 +292,12 @@ int main(int argc, char* argv[]) SetBundledPluginDirectory(GetBundledPluginDirectory()); InitPlugins(); - Ref<BinaryData> bd = new BinaryData(new FileMetadata(), argv[1]); + Ref<BinaryData> bd = BinaryData::CreateFromFilename(new FileMetadata(), argv[1]); + if (!bd) + { + fprintf(stderr, "Could not open input file.\n"); + return -1; + } Ref<BinaryView> bv; for (auto type : BinaryViewType::GetViewTypes()) { |
