mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-22 17:25:54 +02:00
SMB1: Remove unused parameters related to FindInformation
This commit is contained in:
parent
a94e8449a0
commit
cf8857d438
2 changed files with 5 additions and 5 deletions
|
@ -51,13 +51,13 @@ namespace SMBLibrary.Server.SMB1
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
|
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
|
||||||
public static FindInformationList GetFindInformationList(List<QueryDirectoryFileInformation> entries, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys, int maxLength)
|
public static FindInformationList GetFindInformationList(List<QueryDirectoryFileInformation> entries, FindInformationLevel informationLevel, bool isUnicode, int maxLength)
|
||||||
{
|
{
|
||||||
FindInformationList result = new FindInformationList();
|
FindInformationList result = new FindInformationList();
|
||||||
int pageLength = 0;
|
int pageLength = 0;
|
||||||
for (int index = 0; index < entries.Count; index++)
|
for (int index = 0; index < entries.Count; index++)
|
||||||
{
|
{
|
||||||
FindInformation infoEntry = GetFindInformation(entries[index], informationLevel, isUnicode, returnResumeKeys);
|
FindInformation infoEntry = GetFindInformation(entries[index], informationLevel);
|
||||||
int entryLength = infoEntry.GetLength(isUnicode);
|
int entryLength = infoEntry.GetLength(isUnicode);
|
||||||
if (pageLength + entryLength <= maxLength)
|
if (pageLength + entryLength <= maxLength)
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@ namespace SMBLibrary.Server.SMB1
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
|
/// <exception cref="SMBLibrary.UnsupportedInformationLevelException"></exception>
|
||||||
public static FindInformation GetFindInformation(QueryDirectoryFileInformation entry, FindInformationLevel informationLevel, bool isUnicode, bool returnResumeKeys)
|
public static FindInformation GetFindInformation(QueryDirectoryFileInformation entry, FindInformationLevel informationLevel)
|
||||||
{
|
{
|
||||||
switch (informationLevel)
|
switch (informationLevel)
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace SMBLibrary.Server.SMB1
|
||||||
FindInformationList findInformationList;
|
FindInformationList findInformationList;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength);
|
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, maxLength);
|
||||||
}
|
}
|
||||||
catch (UnsupportedInformationLevelException)
|
catch (UnsupportedInformationLevelException)
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,7 @@ namespace SMBLibrary.Server.SMB1
|
||||||
FindInformationList findInformationList;
|
FindInformationList findInformationList;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, returnResumeKeys, maxLength);
|
findInformationList = SMB1FileStoreHelper.GetFindInformationList(segment, subcommand.InformationLevel, header.UnicodeFlag, maxLength);
|
||||||
}
|
}
|
||||||
catch (UnsupportedInformationLevelException)
|
catch (UnsupportedInformationLevelException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue