mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-06 07:44:57 +02:00
ServerService: ShareEnum: Bugfix: NullReferenceException was thrown if Info was null
This commit is contained in:
parent
536d68a620
commit
4d613ecd11
1 changed files with 2 additions and 2 deletions
|
@ -67,13 +67,13 @@ namespace SMBLibrary.Services
|
|||
{
|
||||
if (Info != null && Level != Info.Level)
|
||||
{
|
||||
throw new ArgumentException("Invalid SHARE_ENUM_STRUCT Level");
|
||||
throw new ArgumentException("SHARE_ENUM_STRUCT Level mismatch");
|
||||
}
|
||||
|
||||
writer.BeginStructure(); // SHARE_ENUM_STRUCT
|
||||
writer.WriteUInt32(Level);
|
||||
writer.BeginStructure(); // SHARE_ENUM_UNION
|
||||
writer.WriteUInt32(Info.Level);
|
||||
writer.WriteUInt32(Level);
|
||||
writer.WriteEmbeddedStructureFullPointer(Info);
|
||||
writer.EndStructure(); // SHARE_ENUM_UNION
|
||||
writer.EndStructure(); // SHARE_ENUM_STRUCT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue