diff options
Diffstat (limited to 'CPP/Windows/DLL.cpp')
-rw-r--r-- | CPP/Windows/DLL.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CPP/Windows/DLL.cpp b/CPP/Windows/DLL.cpp index a71a8017..d7f38375 100644 --- a/CPP/Windows/DLL.cpp +++ b/CPP/Windows/DLL.cpp @@ -97,12 +97,11 @@ FString GetModuleDirPrefix() { int pos = s.ReverseFind_PathSepar(); if (pos >= 0) - { s.DeleteFrom(pos + 1); - return s; - } } - return FTEXT(".") FSTRING_PATH_SEPARATOR; + if (s.IsEmpty()) + s = "." STRING_PATH_SEPARATOR; + return s; } #endif |