File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
using System . IO ;
2
- using System . Text ;
3
2
using System . Xml . Serialization ;
4
3
5
4
namespace DeadLock . Classes
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ internal void SetOwnership(bool owned)
163
163
WindowsIdentity self = WindowsIdentity . GetCurrent ( ) ;
164
164
DirectorySecurity ds = info . GetAccessControl ( ) ;
165
165
ds . SetAccessRuleProtection ( false , true ) ;
166
- if ( self ? . User == null ) return ;
166
+ if ( self . User == null ) return ;
167
167
if ( ds . GetOwner ( typeof ( NTAccount ) ) . ToString ( ) != self . Name )
168
168
{
169
169
ds . SetOwner ( self . User ) ;
@@ -176,7 +176,7 @@ internal void SetOwnership(bool owned)
176
176
WindowsIdentity self = WindowsIdentity . GetCurrent ( ) ;
177
177
FileSecurity fs = File . GetAccessControl ( GetPath ( ) ) ;
178
178
fs . SetAccessRuleProtection ( false , true ) ;
179
- if ( self ? . User == null ) return ;
179
+ if ( self . User == null ) return ;
180
180
if ( fs . GetOwner ( typeof ( NTAccount ) ) . ToString ( ) != self . Name )
181
181
{
182
182
fs . SetOwner ( self . User ) ;
You can’t perform that action at this time.
0 commit comments