--- parser3/src/include/pa_dir.h 2001/10/25 12:41:37 1.6 +++ parser3/src/include/pa_dir.h 2001/11/05 11:46:24 1.8 @@ -2,9 +2,9 @@ Parser: directory scanning for different OS-es decls. Copyright (c) 2000,2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_dir.h,v 1.6 2001/10/25 12:41:37 paf Exp $ + $Id: pa_dir.h,v 1.8 2001/11/05 11:46:24 paf Exp $ */ #ifndef PA_DIR_H @@ -76,12 +76,12 @@ void findclose(struct ffblk *_ffblk); /// main dir workhorse: calles win32/unix unified functions findfirst/next/close #define LOAD_DIR(dir,action) {\ ffblk ffblk; \ - if(findfirst(dir, &ffblk, 0)) { \ + if(!findfirst(dir, &ffblk, 0)) { \ do \ if(*ffblk.ff_name && ffblk.ff_name[0]!='.') {\ action; \ } \ - while(findnext(&ffblk)); \ + while(!findnext(&ffblk)); \ findclose(&ffblk); \ } \ }