closedir() replacement function should return a result

return success, ignoring result of FindClose
This commit is contained in:
Kurt Zeilenga 2014-10-10 12:15:48 -07:00 committed by Quanah Gibson-Mount
parent 0563d68c47
commit 12b3ad9138

View file

@ -437,8 +437,9 @@ struct dirent *readdir(DIR *dir)
}
int closedir(DIR *dir)
{
FindClose(dir->dir);
(void) FindClose(dir->dir);
ber_memfree(dir);
return 0;
}
#endif