mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Change for bug #1581, using FileShare.Read instead of FileShare.ReadWrite to prevent the error that was reported.
This commit is contained in:
parent
c7b6c071b4
commit
62bae466ae
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ namespace Greenshot.IniFile {
|
|||
*/
|
||||
public static Dictionary<string, Dictionary<string, string>> read(string path, Encoding encoding) {
|
||||
Dictionary<string, Dictionary<string, string>> ini = new Dictionary<string, Dictionary<string, string>>();
|
||||
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<string, string> nameValues = new Dictionary<string, string>();
|
||||
while (!reader.EndOfStream) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue