|
@@ -88,21 +88,16 @@ namespace SMBLibrary.Server
|
|
|
return m_connectedTrees.ContainsKey(treeID);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
- public ushort? AddOpenFile(ushort treeID, string shareName, string relativePath)
|
|
|
- {
|
|
|
- return AddOpenFile(treeID, shareName, relativePath, null);
|
|
|
- }
|
|
|
-
|
|
|
- public ushort? AddOpenFile(ushort treeID, string shareName, string relativePath, object handle)
|
|
|
+ public ushort? AddOpenFile(ushort treeID, string shareName, string relativePath, object handle, FileAccess fileAccess)
|
|
|
{
|
|
|
lock (m_connection)
|
|
|
{
|
|
|
ushort? fileID = m_connection.AllocateFileID();
|
|
|
if (fileID.HasValue)
|
|
|
{
|
|
|
- m_openFiles.Add(fileID.Value, new OpenFileObject(treeID, shareName, relativePath, handle));
|
|
|
+ m_openFiles.Add(fileID.Value, new OpenFileObject(treeID, shareName, relativePath, handle, fileAccess));
|
|
|
}
|
|
|
return fileID;
|
|
|
}
|