coverity: fixed miscellaneous issues
Merge branch 'devel' of github.com:NeutrinoLabs/xrdp into devel