From ae69370eb054e2d1679aff0247ad3e217df62a62 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sat, 19 Nov 2022 00:03:51 -0500 Subject: Fix issues with building using Visual Studio 2022 --- ui/progresstask.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/progresstask.h') 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) -- cgit v1.3.1