server/sample: fix for issue #1312 (mstsc protocol error)