fixed some bugs

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