| 173 |
{ |
{ |
| 174 |
p_section->ex_menu_set.allow_exit = 1; // Allow exit menu |
p_section->ex_menu_set.allow_exit = 1; // Allow exit menu |
| 175 |
p_section->ex_menu_tm = atol(row[7]); |
p_section->ex_menu_tm = atol(row[7]); |
| 176 |
#ifdef _DEBUG |
log_debug("Loaded gen_ex_menu of section %d [%s]\n", p_section->sid, p_section->sname); |
|
log_common("Loaded gen_ex_menu of section %d [%s]\n", p_section->sid, p_section->sname); |
|
|
#endif |
|
| 177 |
} |
} |
| 178 |
} |
} |
| 179 |
|
|
| 895 |
} |
} |
| 896 |
else if (page_id < 0 || page_id >= *p_page_count) |
else if (page_id < 0 || page_id >= *p_page_count) |
| 897 |
{ |
{ |
| 898 |
#ifdef _DEBUG |
log_debug("Invalid page_id=%d, not in range [0, %d)\n", page_id, *p_page_count); |
|
log_error("Invalid page_id=%d, not in range [0, %d)\n", page_id, *p_page_count); |
|
|
#endif |
|
| 899 |
ret = -3; |
ret = -3; |
| 900 |
} |
} |
| 901 |
else |
else |