summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csgo-loader/csgo-client/Security/RuntimeSecurity.cpp')
-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.