Improved Error system

Former-commit-id: ddd08841d30575713f4a28ac02566f92791e5539
This commit is contained in:
Lynix
2013-09-25 09:29:25 +02:00
parent 672cbaed1d
commit a410e8856a
16 changed files with 199 additions and 51 deletions

View File

@@ -18,7 +18,7 @@ NzDynLibFunc NzDynLibImpl::GetSymbol(const NzString& symbol) const
{
NzDynLibFunc sym = reinterpret_cast<NzDynLibFunc>(GetProcAddress(m_handle, symbol.GetConstBuffer()));
if (!sym)
m_parent->SetLastError(NzGetLastSystemError());
m_parent->SetLastError(NzError::GetLastSystemError());
return sym;
}
@@ -36,7 +36,7 @@ bool NzDynLibImpl::Load(const NzString& libraryPath)
return true;
else
{
m_parent->SetLastError(NzGetLastSystemError());
m_parent->SetLastError(NzError::GetLastSystemError());
return false;
}
}