When OpenProcessToken fails, the function returned -1, which would be true when converted to bool. This is wrong, and it should be returning false.
When OpenProcessToken fails, the function returned -1, which would be true when converted to bool. This is wrong, and it should be returning false.