From 6bc1cdcfbc028d1b24c780d9b62e8f3df3bf9c18 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 19 Feb 2025 12:13:15 -0600 Subject: [PATCH] fix --- support/src/utils/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;