Merge pull request #3695 from jcrespo-asg/win_cliprdr
windows clipboard fix: cliprdr_send_format_list format name
This commit is contained in:
commit
cdcccf6c6d
@ -1289,9 +1289,11 @@ static UINT cliprdr_send_format_list(wfClipboard* clipboard)
|
||||
|
||||
for (index = 0; index < numFormats; index++)
|
||||
{
|
||||
GetClipboardFormatNameA(formats[index].formatId, formatName,
|
||||
sizeof(formatName));
|
||||
formats[index].formatName = _strdup(formatName);
|
||||
if(GetClipboardFormatNameA(formats[index].formatId, formatName,
|
||||
sizeof(formatName)))
|
||||
{
|
||||
formats[index].formatName = _strdup(formatName);
|
||||
}
|
||||
}
|
||||
|
||||
formatList.numFormats = numFormats;
|
||||
|
Loading…
x
Reference in New Issue
Block a user