[AD] trailing backslash under windows

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I just fixed a strange bug, basically these two would fail under Windows
7:

ex_dir data/
ex_dir data\

However this would work:

ex_dir data

In Wine all three work, and in Linux the versions with and without a
slash works. I tracked the problem down to calls to the stat() function
which would always fail with ENOENT whenever there was a trailing slash.
I already committed a fix just posting here anyway since it seems so
weird.

-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/