[winpr,clipboard] close file after read

This commit is contained in:
Armin Novak 2023-02-21 13:02:36 +01:00 committed by akallabeth
parent 10404121c4
commit 53afedf9de

View File

@ -1258,7 +1258,7 @@ static UINT file_get_range(struct synthetic_file* file, UINT64 offset, UINT32 si
{
free(buffer);
}
synthetic_file_read_close(file, (error != NO_ERROR) && (size > 0));
synthetic_file_read_close(file, TRUE /* (error != NO_ERROR) && (size > 0) */);
return error;
}