mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 12:23:28 +00:00
fixed data size calculation in RtlSelfRelativeToAbsoluteSD2
svn path=/trunk/; revision=19079
This commit is contained in:
@@ -815,7 +815,7 @@ RtlSelfRelativeToAbsoluteSD2(PISECURITY_DESCRIPTOR SelfRelativeSecurityDescripto
|
||||
|
||||
ASSERT((ULONG_PTR)DataEnd >= (ULONG_PTR)DataStart);
|
||||
|
||||
DataSize = (ULONG)((ULONG_PTR)DataEnd >= (ULONG_PTR)DataStart);
|
||||
DataSize = (ULONG)((ULONG_PTR)DataEnd - (ULONG_PTR)DataStart);
|
||||
|
||||
if (*BufferSize < sizeof(SECURITY_DESCRIPTOR) + DataSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user