From 829b62e70c7b3245631d07f99f6682fe38faa3aa Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 21 Jul 2002 08:45:28 +0000 Subject: [PATCH] Changed fexistcase() references to glob_t.gl_matchc to gl_pathc. --- src/xpdev/dirwrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c index 1907840e16..a6dc042928 100644 --- a/src/xpdev/dirwrap.c +++ b/src/xpdev/dirwrap.c @@ -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; -- GitLab