Re: [AD] al_findfirst() win2k.

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


> I definitely can't reproduce the problem under Win98, so I guess
> Win2k sets  some additional flags in the bitmask. Does it help to
> pass -1 instead of  FA_ARCH | FA_RDONLY ?

There's definately something wrong with al_findfirst. I'm using Win2k, but
if I pass 0 for the attributes, it only returns files with no attributes
set - under a normal DOS find, that used to list all archive and read-only
files as well.

Passing -1 does make it work for me - but could this lead to strange bugs
when someone else runs the game on their Win98 system, or is -1 a safe value
to use all round?

A possible problem is this attribute which win2k uses to specify a normal
file with no attributes set:
#define FILE_ATTRIBUTE_NORMAL        0x00000080

Cheers,
Chris




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