From 1b1290e92a5fe48f81197482a46329bd1f207c1c Mon Sep 17 00:00:00 2001 From: thepwrtank18 Date: Sat, 8 Jul 2023 00:19:36 -0500 Subject: [PATCH] if it errors, it errors, it's just a temp thing --- xpmgr.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xpmgr.cpp b/xpmgr.cpp index b97448e..8cd45d0 100644 --- a/xpmgr.cpp +++ b/xpmgr.cpp @@ -220,7 +220,6 @@ bool TerminateProcessByName(const wchar_t* processName) HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (snapshot == INVALID_HANDLE_VALUE) { - std::cerr << "Failed to create process snapshot." << std::endl; return false; } @@ -229,7 +228,6 @@ bool TerminateProcessByName(const wchar_t* processName) if (!Process32FirstW(snapshot, &processEntry)) { CloseHandle(snapshot); - std::cerr << "Failed to retrieve process information." << std::endl; return false; } @@ -248,7 +246,6 @@ bool TerminateProcessByName(const wchar_t* processName) } else { - std::cerr << "Failed to terminate the process." << std::endl; CloseHandle(processHandle); CloseHandle(snapshot); return false; // Failed to terminate the process @@ -256,7 +253,6 @@ bool TerminateProcessByName(const wchar_t* processName) } else { - std::cerr << "Failed to open process handle." << std::endl; CloseHandle(snapshot); return false; // Failed to open process handle }