fix
This commit is contained in:
parent
e8e435c170
commit
6bc1cdcfbc
@ -41,7 +41,7 @@ auto change_to_process_directory() -> bool {
|
|||||||
|
|
||||||
::GetModuleFileNameA(nullptr, file_name.data(),
|
::GetModuleFileNameA(nullptr, file_name.data(),
|
||||||
static_cast<DWORD>(file_name.size() - 1U));
|
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());
|
::SetCurrentDirectoryA(path.c_str());
|
||||||
#else // !defined(_WIN32)
|
#else // !defined(_WIN32)
|
||||||
std::string path;
|
std::string path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user