From d535ece5a333ccc1cb839de9a525d8e2494891e1 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 11 Aug 2018 12:48:43 -0400 Subject: [PATCH] remove unneeded code from host --- host/host.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/host/host.cc b/host/host.cc index 368b2c4..048e9d3 100644 --- a/host/host.cc +++ b/host/host.cc @@ -26,15 +26,6 @@ HWND dummyWindow; #define HOST_LOCK CriticalSectionLocker hostLocker(&hostCs) // Synchronized scope for accessing private data -void GetDebugPrivileges() // Artikash 5/19/2018: Is it just me or is this function 100% superfluous? -{ - HANDLE processToken; - TOKEN_PRIVILEGES Privileges = { 1, {0x14, 0, SE_PRIVILEGE_ENABLED} }; - OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &processToken); - AdjustTokenPrivileges(processToken, FALSE, &Privileges, 0, nullptr, nullptr); - CloseHandle(processToken); -} - BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID unused) { switch (fdwReason) @@ -62,7 +53,6 @@ namespace Host } else { - GetDebugPrivileges(); InitializeCriticalSection(&hostCs); onAttach = onDetach = nullptr; onCreate = onRemove = nullptr;