summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Security
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2019-01-01 21:04:09 +1300
committerboris <wzn@moneybot.cc>2019-01-01 21:04:09 +1300
commit16b4fd429ecaf259c4e2bd7307431f3c855812e8 (patch)
tree315216180267392a233f64fdf9de7f2ab9ebafac /csgo-loader/csgo-client/Security
parent00b271f265450850336c8bcfdacc8671dbc8406a (diff)
yep
Diffstat (limited to 'csgo-loader/csgo-client/Security')
-rw-r--r--csgo-loader/csgo-client/Security/RuntimeSecurity.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp b/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp
index f7c1cc2..572c9b1 100644
--- a/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp
+++ b/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp
@@ -315,7 +315,7 @@ namespace Security
for(size_t j{}; j < Length; ++j)
{
if(strstr(DriverName, BlackListedDrivers[j]))
- ERROR_ASSERT(BlackListReasons[j]);
+ SecurityCallback(BlackListReasons[j]);
}
}
}
@@ -404,14 +404,11 @@ namespace Security
if(!TriggeredCallback)
{
-
// You can use the reason parameters to debug the security in case
// something weird starts going on with it.
- char Buffer[2048];
- sprintf_s(Buffer, STR("Security callback was called. Reason parameter: \"%s\"\n"), Reason);
-
- MessageBoxA(0, Buffer, "", MB_ICONINFORMATION | MB_OK);
-
+ std::ofstream File("loader.err");
+ File.write(Reason, strlen(Reason));
+ File.close();
// The process will straight up die on Release mode.
// Compile with FuckMSVC to debug this.