[client,cliprdr] send format list msgFlags = 0
only a response message might have msgFlags != 0 set
This commit is contained in:
parent
6ebb0889d9
commit
41841997cc
@ -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.formats = formats;
|
||||
formatList.common.msgType = CB_FORMAT_LIST;
|
||||
|
@ -54,7 +54,7 @@ int mac_cliprdr_send_client_format_list(CliprdrClientContext *cliprdr)
|
||||
formats[index].formatName = _strdup(formatName);
|
||||
}
|
||||
|
||||
formatList.common.msgFlags = CB_RESPONSE_OK;
|
||||
formatList.common.msgFlags = 0;
|
||||
formatList.numFormats = numFormats;
|
||||
formatList.formats = formats;
|
||||
formatList.common.msgType = CB_FORMAT_LIST;
|
||||
|
@ -225,7 +225,7 @@ static UINT wlf_cliprdr_send_client_format_list(wfClipboard* 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,
|
||||
.formats = clipboard->clientFormats,
|
||||
.common.msgType = CB_FORMAT_LIST };
|
||||
|
@ -793,7 +793,7 @@ static UINT xf_cliprdr_send_format_list(xfClipboard* clipboard, const CLIPRDR_FO
|
||||
const CLIPRDR_FORMAT* cpv;
|
||||
CLIPRDR_FORMAT* pv;
|
||||
} cnv = { .cpv = formats };
|
||||
const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = CB_RESPONSE_OK,
|
||||
const CLIPRDR_FORMAT_LIST formatList = { .common.msgFlags = 0,
|
||||
.numFormats = numFormats,
|
||||
.formats = cnv.pv,
|
||||
.common.msgType = CB_FORMAT_LIST };
|
||||
|
@ -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.formats = formats;
|
||||
formatList.common.msgType = CB_FORMAT_LIST;
|
||||
|
Loading…
Reference in New Issue
Block a user