You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deadlock-dotnet-sdk/Domain/FileLockerEx.cs
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
namespacedeadlock_dotnet_sdk.Domain
5
5
{
6
6
//TODO: Add RefreshList(). This should clear Lockers and call FindLockingHandles again.
7
-
//TODO: If a handle is closed or invalid, remove it from Lockers. SafeHandle.IsClosed is unreliable—it only works on handles managed by the current process.
:(isFileHandle=(null,newException("Failed to determine if this handle's object is a file/directory; Failed to query the object's type.",HandleObjectType.ex)))
99
-
:isFileHandle;
115
+
:(isFileHandle=(null,newException("Failed to determine if this handle's object is a file/directory; Failed to query the object's type.",HandleObjectType.ex)));
116
+
}
117
+
else
118
+
{
119
+
returnisFileHandle;
120
+
}
121
+
}
122
+
}
100
123
101
124
/// <summary>
102
125
/// TRUE if the file object's path is a network path i.e. SMB2 network share. FALSE if the file was opened via a local disk path.
returnhandleObjectType=(null,newInvalidOperationException("Unable to query the kernel object's Type; Failed to query the process's protection:\r\n"+ex,ex));
68
+
returnhandleObjectType=(null,newInvalidOperationException(errUnableMsg+"Failed to query the process's protection.",ex));
64
69
}
65
70
elseif(v.Value.TypeisPsProtectedTypeNone or PsProtectedTypeProtectedLight)
0 commit comments