windows fix: cliprdr_send_format_list format name
This commit is contained in:
parent
86a58a8dc9
commit
d1ece92b95
@ -1289,10 +1289,12 @@ 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;
|
||||||
formatList.formats = formats;
|
formatList.formats = formats;
|
||||||
|
Loading…
Reference in New Issue
Block a user