Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review comment
  • Loading branch information
Hirogen committed Nov 26, 2025
commit ba3bb118466ff880b15d4fdadbbd5140dd56cbfe
5 changes: 2 additions & 3 deletions src/LogExpert.UI/Extensions/LockFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public static List<Process> FindLockProcesses (string path)
try
{
uint pnProcInfo = 0;
var rebootReason = Vanara.PInvoke.RstrtMgr.RM_REBOOT_REASON.RmRebootReasonNone;
string[] resources = [path];

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

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

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

return processes;
}
}
}
Loading