Skip to content
Snippets Groups Projects
Commit 5927ff01 authored by deuce's avatar deuce
Browse files

gl_matchc is not a POSIX standard member of glob_t

parent 232bf756
No related branches found
No related tags found
No related merge requests found
......@@ -947,7 +947,7 @@ tODResult ODDirOpen(CONST char *pszPath, WORD wAttributes, tODDirHandle *phDir)
#ifdef ODPLAT_NIX
if(glob(pszPath,GLOB_NOSORT,NULL,&(pDirInfo->g)))
return(kODRCNoMatch);
if(pDirInfo->g.gl_matchc==0) {
if(pDirInfo->g.gl_pathc==0) {
globfree(&(pDirInfo->g));
return(kODRCNoMatch);
}
......@@ -1096,7 +1096,7 @@ tODResult ODDirRead(tODDirHandle hDir, tODDirEntry *pDirEntry)
if(!st.st_mode & S_IRUSR)
pDirEntry->wAttributes |= DIR_ATTRIB_SYSTEM;
pDirInfo->pos++;
if(pDirInfo->pos==pDirInfo->g.gl_matchc)
if(pDirInfo->pos==pDirInfo->g.gl_pathc)
pDirInfo->bEOF=TRUE;
if(pDirEntry->wAttributes==pDirInfo->wAttributes)
return(kODRCSuccess);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment