diff --git a/support/src/utils/file.cpp b/support/src/utils/file.cpp index 6f3b6e6..612a4b6 100644 --- a/support/src/utils/file.cpp +++ b/support/src/utils/file.cpp @@ -41,7 +41,7 @@ auto change_to_process_directory() -> bool { ::GetModuleFileNameA(nullptr, file_name.data(), static_cast(file_name.size() - 1U)); - auto path = utils::path::strip_to_file_name(file_name.c_str()); + auto path = utils::path::get_parent_path(file_name.c_str()); ::SetCurrentDirectoryA(path.c_str()); #else // !defined(_WIN32) std::string path;