Update util.cpp

This commit is contained in:
alk 2023-05-01 15:15:27 +03:00 committed by GitHub
parent 866401b994
commit 799a6672ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ ghc::filesystem::path utils::file::current_path() {
std::array<TCHAR, MAX_PATH> szFileName; std::array<TCHAR, MAX_PATH> szFileName;
GetModuleFileName(NULL, szFileName.data(), MAX_PATH); GetModuleFileName(NULL, szFileName.data(), MAX_PATH);
ghc::filesystem::path path(szFileName); ghc::filesystem::path path(szFileName.data());
auto currentPath = path.parent_path(); auto currentPath = path.parent_path();
return currentPath; return currentPath;
} }