Former-commit-id: cb32d05b5e59329860fea64aaf8bfee024621109
This commit is contained in:
Lynix
2014-04-04 19:27:11 +02:00
parent f88c6cf0d7
commit a09fbe6a9d
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ NzDynLibFunc NzDynLibImpl::GetSymbol(const NzString& symbol, NzString* errorMess
bool NzDynLibImpl::Load(const NzString& libraryPath, NzString* errorMessage)
{
NzString path = libraryPath;
unsigned int pos = path.FindLast(".so");
if (pos == NzString::npos || (path.GetLength() > pos+3 && path[pos+3] != '.'))
path += ".so";