From 62bae466aed7cd459d5cc52563989d1b691fcd0e Mon Sep 17 00:00:00 2001 From: RKrom Date: Tue, 17 Dec 2013 16:04:19 +0100 Subject: [PATCH] Change for bug #1581, using FileShare.Read instead of FileShare.ReadWrite to prevent the error that was reported. --- GreenshotPlugin/IniFile/IniReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GreenshotPlugin/IniFile/IniReader.cs b/GreenshotPlugin/IniFile/IniReader.cs index 412f90afd..1cd268ea8 100644 --- a/GreenshotPlugin/IniFile/IniReader.cs +++ b/GreenshotPlugin/IniFile/IniReader.cs @@ -35,7 +35,7 @@ namespace Greenshot.IniFile { */ public static Dictionary> read(string path, Encoding encoding) { Dictionary> ini = new Dictionary>(); - using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 1024)) { + using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 1024)) { using (StreamReader reader = new StreamReader(fileStream, encoding)) { Dictionary nameValues = new Dictionary(); while (!reader.EndOfStream) {