From 5170f4c24cf8bd07bce91b9dd3f9cef2ea8ac265 Mon Sep 17 00:00:00 2001 From: hasherezade Date: Fri, 23 Aug 2024 01:50:17 +0200 Subject: [PATCH] [BUGFIX] Fixed errors stopping compilation on Linux --- EvasionWatch.h | 4 ++-- FuncWatch.h | 5 ++++- Settings.h | 7 +++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/EvasionWatch.h b/EvasionWatch.h index 9dbcb99..c743661 100644 --- a/EvasionWatch.h +++ b/EvasionWatch.h @@ -78,8 +78,8 @@ typedef VOID EvasionWatchAfterCallBack(const ADDRINT Address, const THREADID tid struct EvasionFuncInfo : public WFuncInfo { EvasionFuncInfo(const std::string& _dllName, const std::string& _funcName, const size_t _paramCount, EvasionWatchBeforeCallBack* _callbackB = nullptr, EvasionWatchAfterCallBack* _callbackA = nullptr, t_watch_level _type = WATCH_STANDARD) - : callbackBefore(_callbackB), callbackAfter(_callbackA), type(_type), - WFuncInfo(_dllName, _funcName, _paramCount) + : WFuncInfo(_dllName, _funcName, _paramCount), + callbackBefore(_callbackB), callbackAfter(_callbackA), type(_type) { } diff --git a/FuncWatch.h b/FuncWatch.h index 15ace8c..000f597 100644 --- a/FuncWatch.h +++ b/FuncWatch.h @@ -1,13 +1,16 @@ #pragma once #include -#include +#include #include +#include #include #include #include #include +#include "Util.h" + #define LIST_DELIMITER ';' struct RoutineInfo diff --git a/Settings.h b/Settings.h index 48f3833..6be5521 100644 --- a/Settings.h +++ b/Settings.h @@ -63,6 +63,7 @@ struct StopOffset { this->rva = other.rva; this->times = other.times; + return *this; } bool load(const std::string& sline, char delimiter); @@ -90,11 +91,13 @@ class Settings { shortLogging(true), logIndirect(false), hexdumpSize(8), + hookSleep(false), + sleepTime(0), + stopOffsetTime(30), antidebug(WATCH_DISABLED), antivm(WATCH_DISABLED), useDebugSym(false), - isHyperVSet(false), - stopOffsetTime(30) + isHyperVSet(false) { }