Don't crash when running in a context without a home path.
This commit is contained in:
@@ -150,6 +150,9 @@ std::filesystem::path ResolveHomePath(const std::filesystem::path &path)
|
||||
{
|
||||
homeDirectory = getenv("USERPROFILE");
|
||||
}
|
||||
if (homeDirectory == nullptr) {
|
||||
return path;
|
||||
}
|
||||
std::filesystem::path result = homeDirectory;
|
||||
|
||||
bool first = true;
|
||||
|
||||
Reference in New Issue
Block a user