Fix to eager file locked check - thx OSokil :)

Fix #6936
This commit is contained in:
niksedk 2023-05-18 06:22:34 +02:00
parent 992c08ee98
commit e6af3c266a

View File

@ -614,7 +614,7 @@ namespace Nikse.SubtitleEdit.Core.Common
{
try
{
using (var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None))
using (var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
{
stream.Close();
}