reds: fix vdagent monitor flag filtering

Fixes commit 828c881bd0a8d73a5c2038bdf22cb8ae7c793482 ("agent/qxl: add
monitors physical dimensions handling").

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Marc-André Lureau 2020-09-16 19:11:06 +04:00 committed by Frediano Ziglio
parent f1e89573b6
commit d1bea58002

View File

@ -1143,8 +1143,8 @@ static void reds_on_main_agent_monitors_config(RedsState *reds,
}
monitors_config = (VDAgentMonitorsConfig *)(cmc->buffer + sizeof(*msg_header));
/* filter out not known flags */
monitors_config->flags &= ~(VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS |
VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE);
monitors_config->flags &= VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS |
VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE;
if ((monitors_config->flags & VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE) != 0) {
monitor_size += sizeof(VDAgentMonitorMM);
}