Author: gbrunmar
Date: Wed Oct 24 01:47:18 2007
New Revision: 29838
URL:
http://svn.reactos.org/svn/reactos?rev=29838&view=rev
Log:
Made r29837 readable
Modified:
trunk/reactos/lib/rtl/sd.c
Modified: trunk/reactos/lib/rtl/sd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/sd.c?rev=29838&…
==============================================================================
--- trunk/reactos/lib/rtl/sd.c (original)
+++ trunk/reactos/lib/rtl/sd.c Wed Oct 24 01:47:18 2007
@@ -169,25 +169,25 @@
destSD->Group = srcSD->Group;
RtlCopySid(GroupLength, (LPBYTE)destSD + (DWORD_PTR)destSD->Group, Group);
- if (srcSD->Control & SE_DACL_PRESENT)
- {
- destSD->Dacl = srcSD->Dacl;
+ if (srcSD->Control & SE_DACL_PRESENT)
+ {
+ destSD->Dacl = srcSD->Dacl;
if(srcSD->Dacl != NULL && RtlValidAcl(srcSD->Dacl))
- {
+ {
RtlCopyMemory(((LPBYTE)destSD + (DWORD_PTR)destSD->Dacl), Dacl,
Dacl->AclSize);
- }
- }
-
- if (srcSD->Control & SE_SACL_PRESENT)
+ }
+ }
+
+ if (srcSD->Control & SE_SACL_PRESENT)
{
destSD->Sacl = srcSD->Sacl;
if(srcSD->Sacl != NULL && RtlValidAcl(srcSD->Sacl))
- {
+ {
RtlCopyMemory(((LPBYTE)destSD + (DWORD_PTR)destSD->Sacl), Sacl,
Sacl->AclSize);
- }
- }
+ }
+ }
}
else
{
@@ -199,20 +199,20 @@
destSD->Dacl = RtlAllocateHeap(RtlGetProcessHeap(), 0, Dacl->AclSize);
if(srcSD->Dacl != NULL && RtlValidAcl(srcSD->Dacl))
- {
+ {
RtlCopyMemory(destSD->Dacl, Dacl, Dacl->AclSize);
- }
- }
+ }
+ }
if (srcSD->Control & SE_SACL_PRESENT)
{
destSD->Sacl = RtlAllocateHeap(RtlGetProcessHeap(), 0, Sacl->AclSize);
if(srcSD->Sacl != NULL && RtlValidAcl(srcSD->Sacl))
- {
+ {
RtlCopyMemory(destSD->Sacl, Sacl, Sacl->AclSize);
- }
- }
+ }
+ }
}
return STATUS_SUCCESS;