keeperfx
keeperfx copied to clipboard
Suspicious code in src\frontend.cpp (line 2158~2160)
struct TextScrollWindow *scrollwnd;
scrollwnd = (struct TextScrollWindow *)gbtn->content;
if ((scrollwnd != NULL) && (scrollwnd->text[0] == 1))
Is it okay to assume that "gbtn->content" is a TextScrollWindow?
Look at "GuiButtonInit main_menu_buttons[]" at line 139 of src\frontmenu_ingame_tabs_data.cpp.
{ LbBtnT_RadioBtn, BID_INFO_TAB, 0, 0, gui_set_menu_mode, NULL, NULL, GMnu_QUERY, 0, 154, 0, 154, 28, 34, gui_draw_tab, GPS_rpanel_rpanel_tab_infoa, GUIStr_InformationPanelDesc,0,{(long)&info_tag}, 0, menu_tab_maintain },
{(long)&info_tag} is a pointer to a char.