Skip to content

Commit

Permalink
Fix type errors with strings
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent 6865d5c commit 653b801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void close_application_by_exe(const char* exe_name)
{
do
{
if (_stricmp(pe32.szExeFile, exe_name.c_str()) == 0)
if (_stricmp(pe32.szExeFile, exe_name) == 0)
{
HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, FALSE, pe32.th32ProcessID);
if (hProcess)
Expand All @@ -93,7 +93,7 @@ void monitor_executables(const char* folder_path)
{
if (entry.is_regular_file() && entry.path().extension() == ".exe")
{
close_application_by_exe(entry.path().filename().string());
close_application_by_exe(entry.path().filename().c_str());
}
}

Expand Down

0 comments on commit 653b801

Please sign in to comment.