From ad846b90d446e30a91ad243271798a94473140b0 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 21 Jun 2019 22:55:29 -0400 Subject: [PATCH] fix crash --- GUI/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 93904c0..f63aa4b 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -316,7 +316,7 @@ void MainWindow::LaunchProcess() void MainWindow::DetachProcess() { - Host::DetachProcess(GetSelectedProcessId()); + try { Host::DetachProcess(GetSelectedProcessId()); } catch (std::out_of_range) {} } void MainWindow::AddHook()