Index: C:/ROS/reactos/lib/rtl/sd.c =================================================================== --- lib/rtl/sd.c (revision 57463) +++ lib/rtl/sd.c (working copy) @@ -208,12 +208,12 @@ if (Sd->Revision != SECURITY_DESCRIPTOR_REVISION) return STATUS_UNKNOWN_REVISION; /* Is there a DACL? */ - *DaclPresent = Sd->Control & SE_DACL_PRESENT; + *DaclPresent = (Sd->Control & SE_DACL_PRESENT) != 0; if (*DaclPresent) { /* Yes, return it, and check if defaulted */ *Dacl = SepGetDaclFromDescriptor(Sd); - *DaclDefaulted = Sd->Control & SE_DACL_DEFAULTED; + *DaclDefaulted = (Sd->Control & SE_DACL_DEFAULTED) != 0; } /* All good */ @@ -237,12 +237,12 @@ if (Sd->Revision != SECURITY_DESCRIPTOR_REVISION) return STATUS_UNKNOWN_REVISION; /* Is there a SACL? */ - *SaclPresent = Sd->Control & SE_SACL_PRESENT; + *SaclPresent = (Sd->Control & SE_SACL_PRESENT) != 0; if (*SaclPresent) { /* Yes, return it, and check if defaulted */ *Sacl = SepGetSaclFromDescriptor(Sd); - *SaclDefaulted = Sd->Control & SE_SACL_DEFAULTED; + *SaclDefaulted = (Sd->Control & SE_SACL_DEFAULTED) != 0; } /* All good */ @@ -266,7 +266,7 @@ /* Get the owner and if defaulted */ *Owner = SepGetOwnerFromDescriptor(Sd); - *OwnerDefaulted = Sd->Control & SE_OWNER_DEFAULTED; + *OwnerDefaulted = (Sd->Control & SE_OWNER_DEFAULTED) != 0; /* All good */ return STATUS_SUCCESS; @@ -289,7 +289,7 @@ /* Get the group and if defaulted */ *Group = SepGetGroupFromDescriptor(Sd); - *GroupDefaulted = Sd->Control & SE_GROUP_DEFAULTED; + *GroupDefaulted = (Sd->Control & SE_GROUP_DEFAULTED) != 0; /* All good */ return STATUS_SUCCESS;