This commit is contained in:
parent
50ee204b02
commit
390f12a17c
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ namespace Crafter {
|
||||||
std::filesystem::path GetPath() {
|
std::filesystem::path GetPath() {
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
|
DWORD length = GetModuleFileNameA(NULL, path, MAX_PATH);
|
||||||
std::cout << lenght << std::endl;
|
std::cout << length << std::endl;
|
||||||
if (length == 0) {
|
if (length == 0) {
|
||||||
std::cout << "failed" << std::endl;
|
std::cout << "failed" << std::endl;
|
||||||
throw std::runtime_error("Failed to get executable path");
|
throw std::runtime_error("Failed to get executable path");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue