diff --git a/src/AnalTask.cpp b/src/AnalTask.cpp index ce58a3c8..9cac2fc6 100644 --- a/src/AnalTask.cpp +++ b/src/AnalTask.cpp @@ -52,6 +52,10 @@ void AnalTask::runTask() } } + if (isInterrupted()) { + return; + } + if (!options.os.isNull()) { Core()->cmd("e asm.os=" + options.os); } @@ -61,10 +65,18 @@ void AnalTask::runTask() Core()->loadPDB(options.pdbFile); } + if (isInterrupted()) { + return; + } + if (!options.script.isNull()) { Core()->loadScript(options.script); } + if (isInterrupted()) { + return; + } + if (options.endian != InitialOptions::Endianness::Auto) { Core()->setEndianness(options.endian == InitialOptions::Endianness::Big); }