[Spice-commits] common/agent.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 17 05:46:43 UTC 2020
common/agent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit fa0c199d3307e05eb7214ba598bf78a952ee4691
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Thu Sep 17 01:39:23 2020 +0400
agent: fix vdagent monitor flag filtering
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/common/agent.c b/common/agent.c
index 75faee5..e29fdcd 100644
--- a/common/agent.c
+++ b/common/agent.c
@@ -250,8 +250,8 @@ agent_message_monitors_config_from_le(const VDAgentMessage *message_header, uint
{
uint32_from_le(message, sizeof(VDAgentMonitorsConfig), 0);
VDAgentMonitorsConfig *vdata = (VDAgentMonitorsConfig*) message;
- vdata->flags &= ~(VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS|
- VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE);
+ vdata->flags &= VD_AGENT_CONFIG_MONITORS_FLAG_USE_POS|
+ VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE;
size_t element_size = sizeof(vdata->monitors[0]);
if ((vdata->flags & VD_AGENT_CONFIG_MONITORS_FLAG_PHYSICAL_SIZE) != 0) {
element_size += sizeof(VDAgentMonitorMM);
More information about the Spice-commits
mailing list