Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#4

AW: [JwSCL] Exception bei TJwSecurityDescriptorDialog.SetSecurity

  Alt 19. Okt 2015, 20:24
Zitat:
ist wohl leider ein Bug in JWSCL.
Dann sind wohl diese Abfragen ebenfalls falsch.
Wären dann also 3 Fehler nicht nur einer.

Delphi-Quellcode:
   //replace Owner
   if siOwnerSecurityInformation in secInfo then
   begin
     MergedSD.OwnOwner := True;
     MergedSD.Owner := SD.Owner; //simply copy owner
   end;

   //replace group
   if siGroupSecurityInformation in secInfo then
   begin
     MergedSD.OwnPrimaryGroup := True;
     MergedSD.PrimaryGroup := SD.PrimaryGroup; //simply copy group
   end;

   //replace DACL
   if siDaclSecurityInformation in secInfo then
   begin
     MergedSD.OwnDACL := True;
     MergedSD.DACL := SD.DACL; //simply copy DACL
   end;
gruss
  Mit Zitat antworten Zitat