[core,gcc] Fix applying RedirectionVersionMask

The RedirectionVersionMask is 0x3c i.e. 00111100.
So the left shift operation to set RedirectionVersion is of 2 places.
This commit is contained in:
Joan Torres 2023-02-21 13:56:43 +01:00 committed by David Fort
parent a91b2f4999
commit e5d9a41778

View File

@ -2076,9 +2076,9 @@ BOOL gcc_write_client_cluster_data(wStream* s, const rdpMcs* mcs)
/* REDIRECTION_VERSION6 requires multitransport enabled.
* if we run without that use REDIRECTION_VERSION5 */
if (freerdp_settings_get_bool(settings, FreeRDP_SupportMultitransport))
flags |= (REDIRECTION_VERSION6 << 4);
flags |= (REDIRECTION_VERSION6 << 2);
else
flags |= (REDIRECTION_VERSION5 << 4);
flags |= (REDIRECTION_VERSION5 << 2);
}
WLog_VRB(TAG, "write ClusterInfoFlags=%s, RedirectedSessionId=0x%08" PRIx32,