Skip to content

Commit ba3bb11

Browse files
committed
review comment
1 parent 6249edf commit ba3bb11

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/LogExpert.UI/Extensions/LockFinder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public static List<Process> FindLockProcesses (string path)
6969
try
7070
{
7171
uint pnProcInfo = 0;
72-
var rebootReason = Vanara.PInvoke.RstrtMgr.RM_REBOOT_REASON.RmRebootReasonNone;
7372
string[] resources = [path];
7473

7574
res = Vanara.PInvoke.RstrtMgr.RmRegisterResources(handle, (uint)resources.Length, resources, 0, null, 0, null);
@@ -78,7 +77,7 @@ public static List<Process> FindLockProcesses (string path)
7877
throw new LockFinderException(Resources.Lockfinder_Exception_CouldNotRegisterResource);
7978
}
8079

81-
res = Vanara.PInvoke.RstrtMgr.RmGetList(handle, out var pnProcInfoNeeded, ref pnProcInfo, null, out rebootReason);
80+
res = Vanara.PInvoke.RstrtMgr.RmGetList(handle, out var pnProcInfoNeeded, ref pnProcInfo, null, out Vanara.PInvoke.RstrtMgr.RM_REBOOT_REASON rebootReason);
8281

8382
const int ERROR_MORE_DATA = 234;
8483
if (res == ERROR_MORE_DATA)
@@ -120,4 +119,4 @@ public static List<Process> FindLockProcesses (string path)
120119

121120
return processes;
122121
}
123-
}
122+
}

0 commit comments

Comments
 (0)