Skip to content

Commit 023a2df

Browse files
committed
refactor: remove unused usings, update prop type and ref
1 parent 44bccb8 commit 023a2df

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

deadlock-dotnet-sdk/Domain/SafeHandleEx.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using System.ComponentModel;
22
using System.Diagnostics;
33
using System.Runtime.InteropServices;
4-
using System.Text.Json;
54
using Microsoft.Win32.SafeHandles;
65
using Windows.Win32.Foundation;
7-
using Windows.Win32.Security;
86
using Windows.Win32.System.Threading;
97
using static Windows.Win32.PInvoke;
108
using ACCESS_MASK = PInvoke.Kernel32.ACCESS_MASK;
@@ -84,10 +82,7 @@ internal SafeHandleEx(NativeMethods.SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX sysHandleE
8482

8583
internal NativeMethods.SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX SysHandleEx { get; }
8684

87-
public unsafe void* Object => SysHandleEx.Object;
88-
/// <summary>
89-
/// cast to uint
90-
/// </summary>
85+
public unsafe UIntPtr Object => SysHandleEx.ObjectPointer;
9186
public uint ProcessId => (uint)SysHandleEx.UniqueProcessId;
9287
public nuint HandleValue => SysHandleEx.HandleValue;
9388
public ushort CreatorBackTraceIndex => SysHandleEx.CreatorBackTraceIndex;

0 commit comments

Comments
 (0)