Use _tclosedir rather than closedir.

This commit is contained in:
Klaas Freitag 2012-11-13 11:45:12 +01:00
parent a0fcd35183
commit 905e97f2ab

View File

@ -103,7 +103,7 @@ int c_rmdirs(const char *path) {
len = strlen(path) + _tcslen(dp->d_name) + 2;
fname = c_malloc(len);
if (fname == NULL) {
closedir(d);
_tclosedir(d);
return -1;
}
snprintf(fname, len, "%s/%s", path, dp->d_name);