if (control->id == control_id) {
if (index == GBAUDIO_INVALID_ID)
return control->name;
+ if (index >= control->items)
+ return NULL;
return control->texts[index];
}
}
if (control->id == control_id) {
if (index == GBAUDIO_INVALID_ID)
return control->name;
+ if (index >= control->items)
+ return NULL;
return control->texts[index];
}
}
csize += gbenum->names_length;
control->texts = (const char * const *)
gb_generate_enum_strings(module, gbenum);
+ control->items = gbenum->items;
} else
csize = sizeof(struct gb_audio_control);
*w_size += csize;
csize += gbenum->names_length;
control->texts = (const char * const *)
gb_generate_enum_strings(module, gbenum);
+ control->items = gbenum->items;
} else
csize = sizeof(struct gb_audio_control);