[client,cliprdr] send format list msgFlags = 0

only a response message might have msgFlags != 0 set
This commit is contained in:
Armin Novak 2024-05-22 16:30:21 +02:00
parent 6ebb0889d9
commit 41841997cc
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105
5 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ UINT android_cliprdr_send_client_format_list(CliprdrClientContext* cliprdr)
} }
} }
formatList.common.msgFlags = CB_RESPONSE_OK; formatList.common.msgFlags = 0;
formatList.numFormats = numFormats; formatList.numFormats = numFormats;
formatList.formats = formats; formatList.formats = formats;
formatList.common.msgType = CB_FORMAT_LIST; formatList.common.msgType = CB_FORMAT_LIST;

View File

@ -54,7 +54,7 @@ int mac_cliprdr_send_client_format_list(CliprdrClientContext *cliprdr)
formats[index].formatName = _strdup(formatName); formats[index].formatName = _strdup(formatName);
} }
formatList.common.msgFlags = CB_RESPONSE_OK; formatList.common.msgFlags = 0;
formatList.numFormats = numFormats; formatList.numFormats = numFormats;
formatList.formats = formats; formatList.formats = formats;
formatList.common.msgType = CB_FORMAT_LIST; formatList.common.msgType = CB_FORMAT_LIST;

View File

@ -225,7 +225,7 @@ static UINT wlf_cliprdr_send_client_format_list(wfClipboard* clipboard)
{ {
WINPR_ASSERT(clipboard); WINPR_ASSERT(clipboard);
const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = CB_RESPONSE_OK, const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = 0,
.numFormats = (UINT32)clipboard->numClientFormats, .numFormats = (UINT32)clipboard->numClientFormats,
.formats = clipboard->clientFormats, .formats = clipboard->clientFormats,
.common.msgType = CB_FORMAT_LIST }; .common.msgType = CB_FORMAT_LIST };

View File

@ -793,7 +793,7 @@ static UINT xf_cliprdr_send_format_list(xfClipboard* clipboard, const CLIPRDR_FO
const CLIPRDR_FORMAT* cpv; const CLIPRDR_FORMAT* cpv;
CLIPRDR_FORMAT* pv; CLIPRDR_FORMAT* pv;
} cnv = { .cpv = formats }; } cnv = { .cpv = formats };
const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = CB_RESPONSE_OK, const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = 0,
.numFormats = numFormats, .numFormats = numFormats,
.formats = cnv.pv, .formats = cnv.pv,
.common.msgType = CB_FORMAT_LIST }; .common.msgType = CB_FORMAT_LIST };

View File

@ -72,7 +72,7 @@ UINT ios_cliprdr_send_client_format_list(CliprdrClientContext *cliprdr)
} }
} }
formatList.common.msgFlags = CB_RESPONSE_OK; formatList.common.msgFlags = 0;
formatList.numFormats = numFormats; formatList.numFormats = numFormats;
formatList.formats = formats; formatList.formats = formats;
formatList.common.msgType = CB_FORMAT_LIST; formatList.common.msgType = CB_FORMAT_LIST;