Force close clipboard files
(cherry picked from commit 781c764dfda8876a8b49288c2fef01cfe1173a7f)
This commit is contained in:
Родитель
febd02cb46
Коммит
b3a7a98c45
|
@ -835,7 +835,9 @@ UINT posix_file_read_close(struct posix_file* file, BOOL force)
|
|||
if (file->fd < 0)
|
||||
return NO_ERROR;
|
||||
|
||||
if ((file->offset >= file->size) || force)
|
||||
/* Always force close the file. Clipboard might open hundreds of files
|
||||
* so avoid caching to prevent running out of available file descriptors */
|
||||
if ((file->offset >= file->size) || force || TRUE)
|
||||
{
|
||||
WLog_VRB(TAG, "close file %d", file->fd);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче