Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Feb 10, 2016
1 parent 80c4d6e commit 73cda1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DeadLock/Classes/ListViewLocker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ internal void SetOwnership(bool owned)
DirectorySecurity ds = info.GetAccessControl();
ds.SetAccessRuleProtection(false, true);
if (self?.User == null) return;
if (ds.GetOwner(typeof (NTAccount)).ToString() != self.Name)
if (ds.GetOwner(typeof(NTAccount)).ToString() != self.Name)
{
ds.SetOwner(self.User);
}
Expand Down Expand Up @@ -204,7 +204,7 @@ internal void SetOwnership(bool owned)
{
FileSecurity fs = File.GetAccessControl(GetPath());
fs.SetAccessRuleProtection(true, false);
AuthorizationRuleCollection rules = fs.GetAccessRules(true, true, typeof (NTAccount));
AuthorizationRuleCollection rules = fs.GetAccessRules(true, true, typeof(NTAccount));
foreach (FileSystemAccessRule rule in rules)
{
fs.RemoveAccessRule(rule);
Expand Down
2 changes: 1 addition & 1 deletion DeadLock/Forms/FrmSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private void btnSave_Click(object sender, EventArgs e)

private void btnSelectPath_Click(object sender, EventArgs e)
{
cboLanguage.SelectedIndex = cboLanguage.Items.Count -1;
cboLanguage.SelectedIndex = cboLanguage.Items.Count - 1;
OpenFileDialog ofd = new OpenFileDialog { Filter = @"XML (*.xml)|*.xml" };
if (ofd.ShowDialog() == DialogResult.OK)
{
Expand Down

0 comments on commit 73cda1a

Please sign in to comment.