fixed data size calculation in RtlSelfRelativeToAbsoluteSD2
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 9 Nov 2005 00:56:41 +0000 (00:56 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 9 Nov 2005 00:56:41 +0000 (00:56 +0000)
svn path=/trunk/; revision=19079

reactos/lib/rtl/sd.c

index a332b98..d88fded 100644 (file)
@@ -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)
     {