diff options
| -rw-r--r-- | rust/binaryninjacore-sys/Cargo.toml | 2 | ||||
| -rw-r--r-- | ui/progresstask.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/rust/binaryninjacore-sys/Cargo.toml b/rust/binaryninjacore-sys/Cargo.toml index 97c89026..1954916a 100644 --- a/rust/binaryninjacore-sys/Cargo.toml +++ b/rust/binaryninjacore-sys/Cargo.toml @@ -5,4 +5,4 @@ authors = ["Ryan Snyder <ryan@vector35.com>", "Kyle Martin <kyle@vector35.com>"] build = "build.rs" [build-dependencies] -bindgen = "^0.59" +bindgen = "^0.62" diff --git a/ui/progresstask.h b/ui/progresstask.h index 6f15da42..de4580ae 100644 --- a/ui/progresstask.h +++ b/ui/progresstask.h @@ -510,7 +510,8 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject // construction. std::mutex taskMutex; taskMutex.lock(); - ProgressTask* task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) { + ProgressTask* task; + task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) { auto innerProgress = [=](size_t cur, size_t max) { // Fix dialog disappearing if the backgrounded task thinks it's done if (cur >= max) |
