Fix linux build

This commit is contained in:
Peace-Maker 2018-04-22 15:56:40 +02:00
parent 5fce3e6c66
commit 30fc311738
3 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ int x86MsCdecl::GetArgRegisterSize()
void* x86MsCdecl::GetArgumentPtr(unsigned int iIndex, CRegisters* pRegisters)
{
if (iIndex < 0 || iIndex >= m_vecArgTypes.length())
if (iIndex >= m_vecArgTypes.length())
return NULL;
// Check if this argument was passed in a register.

View File

@ -137,7 +137,7 @@ int x86MsStdcall::GetArgRegisterSize()
void* x86MsStdcall::GetArgumentPtr(unsigned int iIndex, CRegisters* pRegisters)
{
if (iIndex < 0 || iIndex >= m_vecArgTypes.length())
if (iIndex >= m_vecArgTypes.length())
return NULL;
// Check if this argument was passed in a register.

View File

@ -154,7 +154,7 @@ void* x86MsThiscall::GetArgumentPtr(unsigned int iIndex, CRegisters* pRegisters)
// The this pointer isn't explicitly defined as an argument.
iIndex--;
if (iIndex < 0 || iIndex >= m_vecArgTypes.length())
if (iIndex >= m_vecArgTypes.length())
return NULL;
// Check if this argument was passed in a register.