mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- Fix abort with dir command and empty string on Windows.
This commit is contained in:
parent
ce99cda019
commit
5ca3ab3fc9
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue