Skip to content

Commit f0763ab

Browse files
committed
refactor: add constructor for copying a SafeHandleEx
1 parent 123d581 commit f0763ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deadlock-dotnet-sdk/Domain/SafeHandleEx.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ namespace deadlock_dotnet_sdk.Domain;
1919
/// </summary>
2020
public class SafeHandleEx : SafeHandleZeroOrMinusOneIsInvalid
2121
{
22+
public SafeHandleEx(SafeHandleEx safeHandleEx) : this(safeHandleEx.SysHandleEx)
23+
{ }
24+
2225
/// <summary>
2326
/// Initializes a new instance of the <c>SafeHandleEx</c> class from a <see cref="SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX"/>, specifying whether the handle is to be reliably released.
2427
/// </summary>

0 commit comments

Comments
 (0)