Skip to content

Commit

Permalink
- Fix abort with dir command and empty string on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 authored and coelckers committed Oct 30, 2021
1 parent ce99cda commit 5ca3ab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/utility/cmdlib.cpp
Expand Up @@ -866,6 +866,10 @@ FString ExpandEnvVars(const char *searchpathstring)
FString NicePath(const char *path)
{
#ifdef _WIN32
if (*path == '\0')
{
return FString(".");
}
return ExpandEnvVars(path);
#else
if (path == NULL || *path == '\0')
Expand Down

0 comments on commit 5ca3ab3

Please sign in to comment.