Skip to content

Commit

Permalink
Merge pull request #65 from BUTR/code-formatting/fix-codeformatting
Browse files Browse the repository at this point in the history
Automated PR to fix formatting errors
  • Loading branch information
Aragas committed Jul 5, 2023
2 parents 35ffb0b + 48a99b0 commit 734b65a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Bannerlord.BLSE.Shared/Standalone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

using HarmonyLib;

using ModuleManager::Bannerlord.ModuleManager;

using System;
using System.Linq;
using System.Runtime.InteropServices;
Expand All @@ -22,8 +24,6 @@

using Windows.Win32;

using ModuleManager::Bannerlord.ModuleManager;

using MessageBoxButtons = Bannerlord.BLSE.Shared.Utils.MessageBoxButtons;
using MessageBoxDefaultButton = Bannerlord.BLSE.Shared.Utils.MessageBoxDefaultButton;
using MessageBoxIcon = Bannerlord.BLSE.Shared.Utils.MessageBoxIcon;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static unsafe bool CheckProcessDebugObjectHandle()
(uint) sizeof(nint),
ref returnLength
);
return status == 0 && processInformation != null;
return status == 0 && processInformation != null;
}
}
}
2 changes: 1 addition & 1 deletion src/Bannerlord.BLSE.Shared/Utils/WatchdogHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void DisableTWWatchdog()

PInvoke.VirtualProtect(watchdogLocationPtr, (nuint) watchdogLocationSpan.Length, PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE, out var old);
WatchdogReplacement.CopyTo(watchdogLocationSpan);
PInvoke.VirtualProtect(watchdogLocationPtr, (nuint) watchdogLocationSpan.Length, old, out _);
PInvoke.VirtualProtect(watchdogLocationPtr, (nuint) watchdogLocationSpan.Length, old, out _);

searchSpanOffset = idx;
searchSpan = searchSpan.Slice(searchSpanOffset);
Expand Down
2 changes: 1 addition & 1 deletion src/Bannerlord.BLSE/BLSEExceptionHandlerAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace Bannerlord.BLSE
{
Expand Down

0 comments on commit 734b65a

Please sign in to comment.