wasSharpNET
/IO/SafeFileStream.cs |
@@ -6,6 +6,8 @@ |
|
using System; |
using System.IO; |
using System.Runtime.InteropServices; |
using System.Runtime.InteropServices.ComTypes; |
using System.Threading; |
|
namespace wasSharpNET.IO |
@@ -20,7 +22,7 @@ |
|
public SafeFileStream(string path, FileMode mode, FileAccess access, FileShare share, uint milliscondsTimeout) |
{ |
m_mutex = new Mutex(false, $"Global\\{path.Replace('\\', '/')}"); |
m_mutex = new Mutex(false, string.Format("Global\\{0}", path.Replace('\\', '/'))); |
m_path = path; |
m_fileMode = mode; |
m_fileAccess = access; |