mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
minor fix to ProcessSystemProvider
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@697 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -841,7 +841,7 @@ namespace ProcessHacker
|
||||
try
|
||||
{
|
||||
using (var phandle = new Win32.ProcessHandle(processSelectedPID,
|
||||
Win32.PROCESS_RIGHTS.PROCESS_QUERY_INFORMATION | Win32.PROCESS_RIGHTS.PROCESS_VM_READ))
|
||||
Program.MinProcessQueryRights | Win32.PROCESS_RIGHTS.PROCESS_VM_READ))
|
||||
{
|
||||
string currentDirectory = phandle.GetPebString(Win32.ProcessHandle.PebOffset.CurrentDirectoryPath);
|
||||
string cmdLine = phandle.GetPebString(Win32.ProcessHandle.PebOffset.CommandLine);
|
||||
|
||||
@@ -633,6 +633,9 @@ namespace ProcessHacker
|
||||
catch
|
||||
{ }
|
||||
|
||||
if (queryLimitedHandle != null)
|
||||
queryLimitedHandle.Dispose();
|
||||
|
||||
newdictionary.Add(pid, item);
|
||||
this.CallDictionaryAdded(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user