diff --git a/SMBLibrary/Server/ConnectionState/SMB1ConnectionState.cs b/SMBLibrary/Server/ConnectionState/SMB1ConnectionState.cs index d3808e8..094907a 100644 --- a/SMBLibrary/Server/ConnectionState/SMB1ConnectionState.cs +++ b/SMBLibrary/Server/ConnectionState/SMB1ConnectionState.cs @@ -30,8 +30,9 @@ namespace SMBLibrary.Server private ushort m_nextFID = 1; // Key is PID - public Dictionary ProcessStateList = new Dictionary(); - public const int MaxSearches = 2048; // Windows servers initialize Server.MaxSearches to 2048. + private Dictionary m_processStateList = new Dictionary(); + + private const int MaxSearches = 2048; // Windows servers initialize Server.MaxSearches to 2048. public Dictionary> OpenSearches = new Dictionary>(); private ushort m_nextSearchHandle = 1; @@ -149,9 +150,9 @@ namespace SMBLibrary.Server public ProcessStateObject GetProcessState(uint processID) { - if (ProcessStateList.ContainsKey(processID)) + if (m_processStateList.ContainsKey(processID)) { - return ProcessStateList[processID]; + return m_processStateList[processID]; } else { @@ -164,14 +165,14 @@ namespace SMBLibrary.Server /// public ProcessStateObject ObtainProcessState(uint processID) { - if (ProcessStateList.ContainsKey(processID)) + if (m_processStateList.ContainsKey(processID)) { - return ProcessStateList[processID]; + return m_processStateList[processID]; } else { ProcessStateObject processState = new ProcessStateObject(); - ProcessStateList[processID] = processState; + m_processStateList[processID] = processState; return processState; } } @@ -198,7 +199,7 @@ namespace SMBLibrary.Server return null; } - /// Should include the path relative to the file system + /// Should include the path relative to the share /// FileID public ushort? AddOpenedFile(string relativePath) {