Fixed clipboard format for directory copy.

This commit is contained in:
Armin Novak 2015-10-23 12:07:36 +02:00
parent 5de53096ed
commit 57c90eacc6
1 changed files with 10 additions and 2 deletions

View File

@ -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;