[channel,cliprdr] warn on invalid msgFlags in requests

This commit is contained in:
akallabeth 2024-05-16 09:02:42 +02:00
parent 4c4e185b66
commit 23229859d7
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -683,6 +683,15 @@ static UINT cliprdr_client_format_list(CliprdrClientContext* context,
cliprdr = (cliprdrPlugin*)context->handle;
WINPR_ASSERT(cliprdr);
{
const UINT32 mask = CB_RESPONSE_OK | CB_RESPONSE_FAIL;
if ((formatList->common.msgFlags & mask) != 0)
WLog_WARN(TAG,
"Sending clipboard request with invalid flags msgFlags = 0x%08" PRIx32
". Correct in your client!",
formatList->common.msgFlags & mask);
}
const UINT32 mask =
freerdp_settings_get_uint32(context->rdpcontext->settings, FreeRDP_ClipboardFeatureMask);
CLIPRDR_FORMAT_LIST filterList = cliprdr_filter_format_list(