summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lzma/CPP/Windows/DLL.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lzma/CPP/Windows/DLL.cpp')
-rw-r--r--3rdparty/lzma/CPP/Windows/DLL.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/3rdparty/lzma/CPP/Windows/DLL.cpp b/3rdparty/lzma/CPP/Windows/DLL.cpp
index 81eec692182..a71a8017b87 100644
--- a/3rdparty/lzma/CPP/Windows/DLL.cpp
+++ b/3rdparty/lzma/CPP/Windows/DLL.cpp
@@ -13,7 +13,7 @@ extern HINSTANCE g_hInstance;
namespace NWindows {
namespace NDLL {
-bool CLibrary::Free()
+bool CLibrary::Free() throw()
{
if (_module == 0)
return true;
@@ -23,7 +23,7 @@ bool CLibrary::Free()
return true;
}
-bool CLibrary::LoadEx(CFSTR path, DWORD flags)
+bool CLibrary::LoadEx(CFSTR path, DWORD flags) throw()
{
if (!Free())
return false;
@@ -40,7 +40,7 @@ bool CLibrary::LoadEx(CFSTR path, DWORD flags)
return (_module != NULL);
}
-bool CLibrary::Load(CFSTR path)
+bool CLibrary::Load(CFSTR path) throw()
{
if (!Free())
return false;
@@ -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);
+ int pos = s.ReverseFind_PathSepar();
if (pos >= 0)
- return s.Left(pos + 1);
+ {
+ s.DeleteFrom(pos + 1);
+ return s;
+ }
}
return FTEXT(".") FSTRING_PATH_SEPARATOR;
}