Merge pull request #5002 from BrzVlad/feature-sgen-modes
[mono.git] / mcs / class / corlib / System.Security.AccessControl / MutexAuditRule.cs
index 475417b946ee11044bd153fe2b9ef098a016479b..16656bec2b7c2d10462d2ee6ccf16c49927ed9f0 100644 (file)
@@ -33,18 +33,15 @@ namespace System.Security.AccessControl
 {
        public sealed class MutexAuditRule : AuditRule
        {
-               MutexRights rights;
-               
                public MutexAuditRule (IdentityReference identity,
                                       MutexRights eventRights,
                                       AuditFlags flags)
-                       : base (identity, 0, false, InheritanceFlags.None, PropagationFlags.None, flags)
+                       : base (identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, flags)
                {
-                       this.rights = eventRights;
                }
                
                public MutexRights MutexRights {
-                       get { return rights; }
+                       get { return (MutexRights)AccessMask; }
                }
        }
 }