synced this change

This commit is contained in:
David Anderson 2006-06-05 18:43:01 +00:00
parent c92145ee88
commit b4450bbee5

View File

@ -180,6 +180,11 @@ static cell AMX_NATIVE_CALL dbi_query2(AMX *amx, cell *params)
//native dbi_nextrow(Result:_result);
static cell AMX_NATIVE_CALL dbi_nextrow(AMX *amx, cell *params)
{
if (params[1] == 0)
{
return 0;
}
oldresult_s *oldrs = (oldresult_s *)GetHandle(params[1], Handle_OldResult);
if (!oldrs)
{
@ -358,7 +363,7 @@ static cell AMX_NATIVE_CALL dbi_close(AMX *amx, cell *params)
if (!old)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid DBI handle %d", num);
return -1;
return 0;
}
FreeHandle(num);