[quake3-bugzilla] [Bug 5175] UI_SetActiveMenu: bad enum 21340672
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Thu Sep 29 15:47:19 EDT 2011
https://bugzilla.icculus.org/show_bug.cgi?id=5175
--- Comment #3 from Marcello <pez.marcello at hotmail.it> 2011-09-29 15:47:17 EDT ---
I have looked through the code and this is what i have found (not much really,
but hope it will be helpfull):
UI_SetActiveMenu is called in code/q3_ui/ui_main.c:
/*
================
vmMain
This is the only way control passes into the module.
This must be the very first function compiled into the .qvm file
================
*/
Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3,
int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10, int
arg11 ) {
switch ( command ) {
case UI_GETAPIVERSION:
return UI_API_VERSION;
case UI_INIT:
UI_Init();
return 0;
...
case UI_SET_ACTIVE_MENU:
UI_SetActiveMenu( arg0 );
return 0;
case UI_CONSOLE_COMMAND:
return UI_ConsoleCommand(arg0);
...
return -1;
}
So the problem here it's arg0 which is out of bound of enumeration (which one,
i don't know), where does vmMain is called? what is arg0?
--
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the quake3-bugzilla
mailing list