Force close clipboard file descriptor if request size is 0
@@ -1055,7 +1055,7 @@ static UINT posix_file_get_range(struct posix_file* file, UINT64 offset, UINT32
out:
- posix_file_read_close(file, error != NO_ERROR);
+ posix_file_read_close(file, (error != NO_ERROR) && (size > 0));
return error;
}
