Browse Source

SMB1: FindInformation: Remove unused returnResumeKeys parameter

Tal Aloni 7 years ago
parent
commit
0b1ecf7968

+ 2 - 2
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2FindFirst2Response.cs

@@ -57,9 +57,9 @@ namespace SMBLibrary.SMB1
             return FindInformationListBytes;
         }
 
-        public FindInformationList GetFindInformationList(FindInformationLevel findInformationLevel, bool isUnicode, bool returnResumeKeys)
+        public FindInformationList GetFindInformationList(FindInformationLevel findInformationLevel, bool isUnicode)
         {
-            return new FindInformationList(FindInformationListBytes, findInformationLevel, isUnicode, returnResumeKeys);
+            return new FindInformationList(FindInformationListBytes, findInformationLevel, isUnicode);
         }
 
         public void SetFindInformationList(FindInformationList findInformationList, bool isUnicode)

+ 2 - 2
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2FindNext2Response.cs

@@ -54,9 +54,9 @@ namespace SMBLibrary.SMB1
             return FindInformationListBytes;
         }
 
-        public FindInformationList GetFindInformationList(FindInformationLevel findInformationLevel, bool isUnicode, bool returnResumeKeys)
+        public FindInformationList GetFindInformationList(FindInformationLevel findInformationLevel, bool isUnicode)
         {
-            return new FindInformationList(FindInformationListBytes, findInformationLevel, isUnicode, returnResumeKeys);
+            return new FindInformationList(FindInformationListBytes, findInformationLevel, isUnicode);
         }
 
         public void SetFindInformationList(FindInformationList findInformationList, bool isUnicode)

+ 1 - 1
SMBLibrary/SMB1FileStore/Structures/FindInformation/FindInformation.cs

@@ -27,7 +27,7 @@ namespace SMBLibrary.SMB1
             get;
         }
 
-        public static FindInformation ReadEntry(byte[] buffer, int offset, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys)
+        public static FindInformation ReadEntry(byte[] buffer, int offset, FindInformationLevel informationLevel, bool isUnicode)
         {
             switch (informationLevel)
             {

+ 2 - 2
SMBLibrary/SMB1FileStore/Structures/FindInformation/FindInformationList.cs

@@ -17,12 +17,12 @@ namespace SMBLibrary.SMB1
         {
         }
 
-        public FindInformationList(byte[] buffer, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys)
+        public FindInformationList(byte[] buffer, FindInformationLevel informationLevel, bool isUnicode)
         {
             int offset = 0;
             while (offset < buffer.Length)
             {
-                FindInformation entry = FindInformation.ReadEntry(buffer, offset, informationLevel, isUnicode, returnResumeKeys);
+                FindInformation entry = FindInformation.ReadEntry(buffer, offset, informationLevel, isUnicode);
                 this.Add(entry);
                 offset += (int)entry.NextEntryOffset;
             }