diff --git a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs index f022168..e6bb1fd 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs @@ -44,7 +44,7 @@ namespace QuickLook.Plugin.CsvViewer const int limit = 10000; var binded = false; - using (var sr = new StreamReader(path)) + using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))) { using (var parser = new CsvParser(sr)) { diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs index e4135a6..9d40dc6 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs @@ -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]; diff --git a/QuickLook/ViewerWindow.xaml b/QuickLook/ViewerWindow.xaml index 4eaefd5..0498398 100644 --- a/QuickLook/ViewerWindow.xaml +++ b/QuickLook/ViewerWindow.xaml @@ -71,9 +71,9 @@ - -