windows fix: cliprdr_send_format_list format name

This commit is contained in:
jcrespo-asg 2017-01-11 14:29:48 +01:00
parent 86a58a8dc9
commit d1ece92b95

View File

@ -1289,9 +1289,11 @@ static UINT cliprdr_send_format_list(wfClipboard* clipboard)
for (index = 0; index < numFormats; index++) for (index = 0; index < numFormats; index++)
{ {
GetClipboardFormatNameA(formats[index].formatId, formatName, if(GetClipboardFormatNameA(formats[index].formatId, formatName,
sizeof(formatName)); sizeof(formatName)))
formats[index].formatName = _strdup(formatName); {
formats[index].formatName = _strdup(formatName);
}
} }
formatList.numFormats = numFormats; formatList.numFormats = numFormats;