From d697c94388b4bcd8c5e12d5fff32f08628af7538 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 30 Jun 2017 00:41:15 +0200 Subject: [PATCH] [FileSystem] Remove debug message --- src/Components/Modules/AntiCheat.cpp | 4 ++-- src/Components/Modules/AntiCheat.hpp | 2 +- src/Components/Modules/FileSystem.cpp | 9 +-------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/Components/Modules/AntiCheat.cpp b/src/Components/Modules/AntiCheat.cpp index 0c9fc623..ec206659 100644 --- a/src/Components/Modules/AntiCheat.cpp +++ b/src/Components/Modules/AntiCheat.cpp @@ -494,7 +494,7 @@ namespace Components } }); - //AntiCheat::AcquireDebugPriviledge(hToken); + //AntiCheat::AcquireDebugPrivilege(hToken); DWORD dwSize = 0; PVOID pTokenInfo = nullptr; @@ -607,7 +607,7 @@ namespace Components #endif } - void AntiCheat::AcquireDebugPriviledge(HANDLE hToken) + void AntiCheat::AcquireDebugPrivilege(HANDLE hToken) { LUID luid; TOKEN_PRIVILEGES tp = { 0 }; diff --git a/src/Components/Modules/AntiCheat.hpp b/src/Components/Modules/AntiCheat.hpp index b39fb8a5..a4bc8252 100644 --- a/src/Components/Modules/AntiCheat.hpp +++ b/src/Components/Modules/AntiCheat.hpp @@ -87,7 +87,7 @@ namespace Components static void DObjGetWorldTagPosStub(); static void AimTargetGetTagPosStub(); - static void AcquireDebugPriviledge(HANDLE hToken); + static void AcquireDebugPrivilege(HANDLE hToken); static NTSTATUS NTAPI NtCreateThreadExStub(PHANDLE hThread, ACCESS_MASK desiredAccess, LPVOID objectAttributes, HANDLE processHandle, LPTHREAD_START_ROUTINE startAddress, LPVOID parameter, BOOL createSuspended, DWORD stackZeroBits, DWORD sizeOfStackCommit, DWORD sizeOfStackReserve, LPVOID bytesBuffer); static int ValidateThreadTermination(void* addr); diff --git a/src/Components/Modules/FileSystem.cpp b/src/Components/Modules/FileSystem.cpp index 5642609f..91543696 100644 --- a/src/Components/Modules/FileSystem.cpp +++ b/src/Components/Modules/FileSystem.cpp @@ -251,14 +251,7 @@ namespace Components int FileSystem::ExecIsFSStub(const char* execFilename) { - bool result = !File(execFilename).exists(); - - if (execFilename == "mp/stats_init.cfg"s) - { - OutputDebugStringA(""); - } - - return result; + return !File(execFilename).exists(); } void FileSystem::FsStartupSync(const char* a1)