Re: [AD] Broken behaviour of al_findfirst.

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


On 2005-11-19, Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx> wrote:
> According to http://www.allegro.cc/forums/view_thread.php?_id=530017

Proposed patch:

Index: docs/src/allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.374
diff -u -p -r1.374 allegro._tx
--- docs/src/allegro._tx        17 Nov 2005 06:10:09 -0000      1.374
+++ docs/src/allegro._tx        26 Nov 2005 21:26:49 -0000
@@ -10196,7 +10196,7 @@ any character, but only one).
 <codeblock>
       struct al_ffblk info;
 
-      if (al_findfirst("*.pcx", &info, 0) != 0) {
+      if (al_findfirst("*.pcx", &info, ~FA_DIREC) != 0) {
         /* Tell user there are no PCX files. */
         return;
       }<endblock>





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