This commit is contained in:
Paddy Xu
2018-01-27 15:04:46 +02:00
parent fa0824bce9
commit d50d757022
3 changed files with 7 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ namespace QuickLook.Plugin.TextViewer
private void LoadFile(string path)
{
using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
const int bufferLength = 1 * 1024 * 1024;
var buffer = new byte[bufferLength];