From d1ece92b956596336c41e89178ba0d29295415cd Mon Sep 17 00:00:00 2001 From: jcrespo-asg Date: Wed, 11 Jan 2017 14:29:48 +0100 Subject: [PATCH] windows fix: cliprdr_send_format_list format name --- client/Windows/wf_cliprdr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/Windows/wf_cliprdr.c b/client/Windows/wf_cliprdr.c index 8d1cfd94b..7b2abf758 100644 --- a/client/Windows/wf_cliprdr.c +++ b/client/Windows/wf_cliprdr.c @@ -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;