From 16b4fd429ecaf259c4e2bd7307431f3c855812e8 Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 1 Jan 2019 21:04:09 +1300 Subject: yep --- csgo-loader/csgo-client/Security/RuntimeSecurity.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'csgo-loader/csgo-client/Security') 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. -- cgit v1.2.3