Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/DLL.cpp')
-rw-r--r--[-rwxr-xr-x]CPP/Windows/DLL.cpp7
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;
}