ACL: Bugfix: Use AceSize when parsing ACL

This commit is contained in:
Tal Aloni 2024-08-31 12:30:11 +03:00
parent 3f054348d8
commit a64dc6c88b

View file

@ -1,10 +1,9 @@
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
/* Copyright (C) 2014-2024 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
*
* You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
using System;
using System.Collections.Generic;
using Utilities;
@ -41,7 +40,7 @@ namespace SMBLibrary
{
ACE ace = ACE.GetAce(buffer, offset);
this.Add(ace);
offset += ace.Length;
offset += ace.Header.AceSize;
}
}