Filebrowser descends/ascends two levels
Brought to you by:
nigels
The function void GLUI_FileBrowser::dir_list_callback(GLUI_Control *glui_object)
in glui_filebrowser.cpp
does 2 directory changes when gnuc compiler used in windows. Easily seen if you double click on the .. in the browser and it takes you up not to the parent directory but rather the "grand"parent directory.
The problem lines are
chdir(selected+1);
SetCurrentDirectory(selected+1);
because both GNUC and WIN32 are true when using my gnuc compiler in windows ie dev-cpp.
The logical fix seems to be to change to an #elif as follows
chdir(selected+1);
SetCurrentDirectory(selected+1);
Thanks for the report.
MB8GT9 lhdkoogfweuo, [url=http://deauwyehdiag.com/]deauwyehdiag[/url], [link=http://byvrgwfgfrdh.com/]byvrgwfgfrdh[/link], http://fojqwdlkaivy.com/