Add some FreeBSD stuff from Stijn Hoop (fritti)
This commit is contained in:
@@ -365,6 +365,11 @@ DWORD ZFileFindFirst()
|
||||
|
||||
*(char *)(DTALocPos + 0x15) = 0;
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
if (globbuf.gl_matchc == 0)
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
stat ( globbuf.gl_pathv[globcur], &filetype );
|
||||
|
||||
if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());
|
||||
|
||||
Reference in New Issue
Block a user