mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Use _tclosedir rather than closedir.
This commit is contained in:
parent
a0fcd35183
commit
905e97f2ab
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user