RCommHost:  return error code from CopyString rather than making up and error code