Fix reading of ISO images, which are already mounted.

This commit is contained in:
Juergen Tem 2018-05-04 09:21:37 +02:00
parent 6346924d78
commit cdcd28f5a8
No known key found for this signature in database
GPG Key ID: 0A9625B1654DCE28

View File

@ -97,7 +97,7 @@ namespace BDInfo
if ((new FileInfo(path).Attributes & FileAttributes.Directory) != FileAttributes.Directory)
{
IsImage = true;
IoStream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.None);
IoStream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read);
CdReader = new UdfReader(IoStream);
}