This commit is contained in:
Scott E. Graves 2025-02-19 12:13:15 -06:00
parent e8e435c170
commit 6bc1cdcfbc

View File

@ -41,7 +41,7 @@ auto change_to_process_directory() -> bool {
::GetModuleFileNameA(nullptr, file_name.data(),
static_cast<DWORD>(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;