error handling
This commit is contained in:
parent
4310e97236
commit
65bb4b35cf
@ -212,6 +212,11 @@ void MainWindow::on_hookButton_clicked()
|
||||
void MainWindow::on_unhookButton_clicked()
|
||||
{
|
||||
QVector<HookParam> hooks = GetAllHooks(GetSelectedProcessId());
|
||||
if (hooks.size() == 0)
|
||||
{
|
||||
Host::AddConsoleOutput(L"no hooks detected");
|
||||
return;
|
||||
}
|
||||
QStringList hookList;
|
||||
for (auto i : hooks) hookList.push_back(
|
||||
QString::fromStdWString(Host::GetHookName(GetSelectedProcessId(), i.address)) +
|
||||
|
Loading…
Reference in New Issue
Block a user