mirror of https://github.com/FreeRDP/FreeRDP
Fixed clipboard format for directory copy.
This commit is contained in:
parent
5de53096ed
commit
57c90eacc6
|
@ -1209,8 +1209,16 @@ static UINT cliprdr_send_format_list(wfClipboard* clipboard)
|
|||
|
||||
index = 0;
|
||||
|
||||
while (formatId = EnumClipboardFormats(formatId))
|
||||
formats[index++].formatId = formatId;;
|
||||
if (IsClipboardFormatAvailable(CF_HDROP))
|
||||
{
|
||||
formats[index++].formatId = RegisterClipboardFormat(CFSTR_FILEDESCRIPTORW);
|
||||
formats[index++].formatId = RegisterClipboardFormat(CFSTR_FILECONTENTS);
|
||||
}
|
||||
else
|
||||
{
|
||||
while (formatId = EnumClipboardFormats(formatId))
|
||||
formats[index++].formatId = formatId;
|
||||
}
|
||||
|
||||
numFormats = index;
|
||||
|
||||
|
|
Loading…
Reference in New Issue