This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12414 - readdir() broken for plugins in UI simulator
Attached to Project:
Rockbox
Opened by Fred Bauer (freddyb) - Tuesday, 29 November 2011, 01:06 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Tuesday, 29 November 2011, 06:04 GMT+2
Opened by Fred Bauer (freddyb) - Tuesday, 29 November 2011, 01:06 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Tuesday, 29 November 2011, 06:04 GMT+2
|
DetailsPlugins that call rb->readdir() crash. (since r28929) (edit: r28929 not 29929)
|
This task depends upon
Closed by Boris Gjenero (dreamlayers)
Tuesday, 29 November 2011, 06:04 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r31089
Tuesday, 29 November 2011, 06:04 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r31089
struct dirent_cached {
struct dirinfo info;
char *d_name;
long startcluster;
};
but, sim_readdir instead gives it this:
struct sim_dirent {
unsigned char d_name[MAX_PATH];
struct dirinfo info;
long startcluster;
};
It works in core, because there, readdir is readdir_cached. The problem is the PREFIX( ) where directory functions are put into struct plugin_api rockbox_api. That's taken care of elsewhere now. This patch removes the PREFIX( ) and the unnecessary app_closedir and app_readdir wrappers.