diff options
Diffstat (limited to 'CPP/Windows/DLL.cpp')
-rw-r--r--[-rwxr-xr-x] | CPP/Windows/DLL.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CPP/Windows/DLL.cpp b/CPP/Windows/DLL.cpp index 81eec692..367d1be1 100755..100644 --- a/CPP/Windows/DLL.cpp +++ b/CPP/Windows/DLL.cpp @@ -93,11 +93,14 @@ bool MyGetModuleFileName(FString &path) FString GetModuleDirPrefix() { FString s; - if (NDLL::MyGetModuleFileName(s)) + if (MyGetModuleFileName(s)) { int pos = s.ReverseFind(FCHAR_PATH_SEPARATOR); if (pos >= 0) - return s.Left(pos + 1); + { + s.DeleteFrom(pos + 1); + return s; + } } return FTEXT(".") FSTRING_PATH_SEPARATOR; } |