mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 17:15:00 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
7
CPP/Windows/DLL.cpp
Executable file → Normal file
7
CPP/Windows/DLL.cpp
Executable file → Normal file
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user