Skip to content
Snippets Groups Projects
Commit 829b62e7 authored by rswindell's avatar rswindell
Browse files

Changed fexistcase() references to glob_t.gl_matchc to gl_pathc.

parent 57e17035
No related branches found
No related tags found
No related merge requests found
......@@ -416,13 +416,13 @@ BOOL DLLCALL fexistcase(char *path)
if(glob(globme,GLOB_MARK|GLOB_NOSORT,NULL,&glb))
return(FALSE);
if(glb.gl_matchc>0) {
if(glb.gl_pathc>0) {
/**********************************************************
* If multiple matches are found, return TRUE only if one *
* EXACTLY matches path or all but one are directories *
**********************************************************/
j=-1;
for(i=0;i<glb.gl_matchc;i++) {
for(i=0;i<glb.gl_pathc;i++) {
if(!strcmp(path,glb.gl_pathv[i])) {
globfree(&glb);
return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment