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:
wj32
2009-02-21 10:53:42 +00:00
parent 8b1ebb3b9f
commit 040c857365
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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);
}