Fixed DynLib::Load not emitting error on failure

Former-commit-id: 73d792ccaf18533a04f834f6cefcd2eb844c2100
This commit is contained in:
Lynix 2014-01-08 11:25:37 +01:00
parent b85a5bd5d5
commit 5132ada030
1 changed files with 3 additions and 0 deletions

View File

@ -73,7 +73,10 @@ bool NzDynLib::Load(const NzString& libraryPath, bool appendExtension)
std::unique_ptr<NzDynLibImpl> impl(new NzDynLibImpl(this));
if (!impl->Load(path, &m_lastError))
{
NazaraError("Failed to load library: " + m_lastError);
return false;
}
m_impl = impl.release();