Fixed GCC compatibility for now.

Removed ps_locked and replaced with ps_error.
Added set_fail_state.
Fixed md5_file.
This commit is contained in:
David Anderson
2005-12-01 13:42:28 +00:00
parent 80fdb2cdb2
commit f336585d4f
6 changed files with 44 additions and 14 deletions

View File

@@ -87,6 +87,7 @@ void CTaskMngr::CTask::set(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags,
m_pParams = temp;
}
cell *dest = m_pParams;
#if defined WIN32 && !defined __GNUC__
__asm
{
push esi;
@@ -100,7 +101,9 @@ void CTaskMngr::CTask::set(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags,
pop edi;
pop ecx;
};
//memcpy(m_pParams, pParams, sizeof(cell) * iParamsLen);
#else
memcpy(m_pParams, pParams, sizeof(cell) * iParamsLen);
#endif
m_pParams[iParamsLen] = 0;
} else {
m_iParamLen = 0;