Fixed POSIX DynLib implementation

Former-commit-id: 17142fc657e5f6332f980ab9180c071e9de20280
This commit is contained in:
Lynix 2013-01-04 23:23:32 +01:00
parent bedd0bc152
commit dba9470baf
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ NzDynLibFunc NzDynLibImpl::GetSymbol(const NzString& symbol) const
dlerror(); // Clear error flag
converter.pointer = reinterpret_cast<NzDynLibFunc>(dlsym(m_handle, symbol.GetConstBuffer()));
converter.pointer = dlsym(m_handle, symbol.GetConstBuffer());
if (!converter.pointer)
m_parent->SetLastError(dlerror());
@ -44,7 +44,7 @@ bool NzDynLibImpl::Load(const NzString& libraryPath)
dlerror(); // Clear error flag
m_handle = dlopen(path.GetConstBuffer());
m_handle = dlopen(path.GetConstBuffer(), RTLD_LAZY | RTLD_GLOBAL);
if (m_handle)
return true;