ui/vnc: fix handling of VNC_FEATURE_XVP
commit477b301000d665313217f65e3a368d2cb7769c42
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Sep 2023 11:05:58 +0000 (25 13:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Sep 2023 16:25:03 +0000 (25 18:25 +0200)
tree97d103274bdc38823a6a8594a841a3a42aee73f2
parent0cb9c5880e6b8dedc4e20026ce859dd1ea9aac84
ui/vnc: fix handling of VNC_FEATURE_XVP

VNC_FEATURE_XVP was not shifted left before adding it to vs->features,
so it was never enabled; but it was also checked the wrong way with
a logical AND instead of vnc_has_feature.  Fix both places.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ui/vnc.c