Skip to content

Commit

Permalink
Fix argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Nov 3, 2024
1 parent 7d0ff00 commit c74d407
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ void close_application_by_exe(const string& exe_name)

void monitor_executables(const string& folder_path)
{
if (exists(folder_path) == false) {
MessageBox(NULL, "Failed to find path")
}

while (running)
{
for (const auto& entry : fs::directory_iterator(folder_path))
Expand Down Expand Up @@ -124,7 +120,7 @@ void start_monitoring(const char* folder_path = FOLDER_PATH)
if (!running)
{
running = true;
thread(monitor_executables, string(folder_path)).detach();
thread(monitor_executables, folder_path).detach();
}
}

Expand Down

0 comments on commit c74d407

Please sign in to comment.