- Fix abort with dir command and empty string on Windows.

This commit is contained in:
drfrag 2021-10-30 12:31:19 +02:00 committed by Christoph Oelckers
parent ce99cda019
commit 5ca3ab3fc9

View file

@ -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')