fixed some bugs

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5420 21ef857c-d57f-4fe0-8362-d861dc6d29cd