Skip to content

Commit 3766142

Browse files
committed
refactor: remove unnecessary parameter
1 parent 0087880 commit 3766142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deadlock-dotnet-sdk/Domain/ProcessInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public unsafe (PS_PROTECTION? v, Exception? ex) ProcessProtection
465465

466466
try
467467
{
468-
return processMainModulePath = (GetFullProcessImageName((uint)ProcessId), null);
468+
return processMainModulePath = (GetFullProcessImageName(), null);
469469
}
470470
catch (Win32Exception ex) when (ex.NativeErrorCode is Win32ErrorCode.ERROR_GEN_FAILURE)
471471
{
@@ -518,7 +518,7 @@ public unsafe (PS_PROTECTION? v, Exception? ex) ProcessProtection
518518
/// <exception cref="ArgumentException">The process handle <paramref name="hProcess"/> is invalid</exception>
519519
/// <exception cref="Win32Exception">QueryFullProcessImageName failed. See Exception message for details.</exception>
520520
/// <exception cref="UnauthorizedAccessException">Failed to open process handle for processId; </exception>
521-
private unsafe string GetFullProcessImageName(uint processId)
521+
private unsafe string GetFullProcessImageName()
522522
{
523523
//TODO: inline
524524
uint size = 260 + 1;

0 commit comments

Comments
 (0)