windows fix: cliprdr_send_format_list format name
@@ -1289,10 +1289,12 @@ static UINT cliprdr_send_format_list(wfClipboard* clipboard)
for (index = 0; index < numFormats; index++)
{
- GetClipboardFormatNameA(formats[index].formatId, formatName,
- sizeof(formatName));
+ if(GetClipboardFormatNameA(formats[index].formatId, formatName,
+ sizeof(formatName)))
+ {
formats[index].formatName = _strdup(formatName);
}
+ }
formatList.numFormats = numFormats;
formatList.formats = formats;
