pass only 10 arguments. vm_* doesn't use more anyways.

This commit is contained in:
Ludwig Nussel 2005-11-02 20:58:27 +00:00
parent 3ce5d5dccd
commit 5f79f9958b

View file

@ -332,7 +332,7 @@ Dlls will call this directly
long QDECL VM_DllSyscall( long arg, ... ) { long QDECL VM_DllSyscall( long arg, ... ) {
#if ((defined __GNUC__) && !(defined __i386__)) #if ((defined __GNUC__) && !(defined __i386__))
// rcg010206 - see commentary above // rcg010206 - see commentary above
long args[16]; long args[10];
int i; int i;
va_list ap; va_list ap;
@ -726,7 +726,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
// if we have a dll loaded, call it directly // if we have a dll loaded, call it directly
if ( vm->entryPoint ) { if ( vm->entryPoint ) {
//rcg010207 - see dissertation at top of VM_DllSyscall() in this file. //rcg010207 - see dissertation at top of VM_DllSyscall() in this file.
long args[16]; long args[10];
va_list ap; va_list ap;
va_start(ap, callnum); va_start(ap, callnum);
for (i = 0; i < sizeof (args) / sizeof (args[i]); i++) { for (i = 0; i < sizeof (args) / sizeof (args[i]); i++) {