(svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint.
This commit is contained in:
@@ -191,8 +191,9 @@ void SetDParamStr(uint n, const char *str)
|
||||
SetDParam(n, (uint64)(size_t)str);
|
||||
}
|
||||
|
||||
void InjectDParam(int amount)
|
||||
void InjectDParam(uint amount)
|
||||
{
|
||||
assert((uint)amount < lengthof(_decode_parameters));
|
||||
memmove(_decode_parameters + amount, _decode_parameters, sizeof(_decode_parameters) - amount * sizeof(uint64));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user