mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
windows fix: cliprdr_send_format_list format name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user